Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help It doesn't work...
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
It doesn't work...

Alright, i have 1 area when players enters area monster shall get activated from Inactive to Active.... i got script done and entered level and nothing pops up... seems like script is fine but still SHE doesn't appear ... i am talking about Girl Scary here is script:

Spoiler below!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""Teleport1""Appear"true1);
}

void Appear(string &in asParentstring &in asChildint alState)
{
    
SetNPCAwake("Girl1"truetrue);
    
SetNPCFollowPlayer("Girl1"true);



Area is called Teleport1... monster is called Girl1 i checked that...

03-05-2015, 05:40 PM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: It doesn't work...

SetNPC X callbacks are for npc's (obviously), like Agrippa for example. However, monsters aren't npc's. They're entities, which means you have to use SetEntityActive callback.

03-05-2015, 05:51 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#3
RE: It doesn't work...

Awww okay i did got it wrong : ) Thanks for help +rep !

03-05-2015, 06:10 PM
Find




Users browsing this thread: 1 Guest(s)