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 Error trying to run map
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#6
RE: Error trying to run map

Firstly, the addition of the patrol nodes should be on OnStart/OnEnter.

void OnStart()
{    
    AddEnemyPatrolNode("monster_1", "PathNodeArea_1", 0, "idle");
    AddEnemyPatrolNode("monster_1", "PathNodeArea_2", 0, "idle");
}

And I think the player cannot interact a pickable item so 'ActivateMonster' is not called!

A valid usage would be:

void OnStart()
{        
    SetEntityCallbackFunc("key_1", "ActivateMonster");
}

void ActivateMonster(string &in asEntity, string &in type)
{        
    if(type == "OnPickup")        
    {            
        SetEntityActive("monster_1", true);        
    }
}
(This post was last modified: 04-11-2012, 03:33 PM by ClayPigeon.)
04-11-2012, 03:31 PM
Find


Messages In This Thread
Error trying to run map - by Macetrow - 04-11-2012, 02:25 PM
RE: Error trying to run map - by ClayPigeon - 04-11-2012, 03:00 PM
RE: Error trying to run map - by Macetrow - 04-11-2012, 03:07 PM
RE: Error trying to run map - by ClayPigeon - 04-11-2012, 03:10 PM
RE: Error trying to run map - by Macetrow - 04-11-2012, 03:17 PM
RE: Error trying to run map - by ClayPigeon - 04-11-2012, 03:31 PM
RE: Error trying to run map - by Macetrow - 04-11-2012, 03:48 PM
RE: Error trying to run map - by ClayPigeon - 04-11-2012, 04:07 PM
RE: Error trying to run map - by Macetrow - 04-11-2012, 04:11 PM
RE: Error trying to run map - by ClayPigeon - 04-11-2012, 04:42 PM
RE: Error trying to run map - by Macetrow - 04-11-2012, 04:51 PM



Users browsing this thread: 1 Guest(s)