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


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Oh man....
AlexRobillard Offline
Junior Member

Posts: 41
Threads: 5
Joined: Jun 2011
Reputation: 0
#5
RE: Oh man....

Wow, I feel stupid now.
Another question, I want the monster to go on another path when I spawn him again later in the level and hit a couple of nodes, how would I get it to work? When I tried this, the game crashes:
void OnStart()
{
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "MonsterWalk1" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger2" , "MonsterWalk2" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "AddEnemyPatrolNode" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger2" , "AddEnemyPatrolNode2" , true , 1);
}

void MonsterWalk1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster1" , true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_35", 3, "");
}

void MonsterWalk2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster2" , true);
AddEnemyPatrolNode2("Monster2", "PathNodeArea_20", 3, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_4", 10, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_58", 1, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_59", 2, "");
}

Thanks again.
(This post was last modified: 06-28-2011, 04:44 PM by AlexRobillard.)
06-28-2011, 04:22 PM
Find


Messages In This Thread
Oh man.... - by AlexRobillard - 06-28-2011, 03:47 PM
RE: Oh man.... - by Russ Money - 06-28-2011, 03:55 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 04:10 PM
RE: Oh man.... - by DamnNoHtml - 06-28-2011, 04:17 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 04:22 PM
RE: Oh man.... - by rojkish - 06-28-2011, 07:03 PM
RE: Oh man.... - by Kyle - 06-28-2011, 05:21 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 06:44 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 09:00 PM



Users browsing this thread: 1 Guest(s)