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
Path node issue...
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#10
RE: Path node issue...

void OnStart()
{
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "MonsterWalk1" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger2" , "MonsterWalk2" , true , 1);
AddEntityCollideCallback("Player" , "Door_Scare_Trigger" , "DoorScare" , 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);
AddEnemyPatrolNode("Monster2", "PathNodeArea_20", 3.0f, "");
AddEnemyPatrolNode("Monster2", "PathNodeArea_4", 10.0f, "");
AddEnemyPatrolNode("Monster2", "PathNodeArea_58", 1.0f, "");
AddEnemyPatrolNode("Monster2", "PathNodeArea_59", 2.0f, "");
}

void DoorScare(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Door_Scare_Sound" , true);
SetEntityActive("Door_Scare_Effect" , true);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

That should do it
amnesia dsnt recognize AddEnemyPatrolNode2 cos thats not an function

and sorry for the hazzle
(This post was last modified: 07-10-2011, 08:39 PM by Khyrpa.)
07-10-2011, 08:38 PM
Find


Messages In This Thread
Path node issue... - by AlexRobillard - 07-10-2011, 08:24 PM
RE: Path node issue... - by Khyrpa - 07-10-2011, 08:28 PM
RE: Path node issue... - by AlexRobillard - 07-10-2011, 08:28 PM
RE: Path node issue... - by Khyrpa - 07-10-2011, 08:29 PM
RE: Path node issue... - by AlexRobillard - 07-10-2011, 08:31 PM
RE: Path node issue... - by Khyrpa - 07-10-2011, 08:33 PM
RE: Path node issue... - by AlexRobillard - 07-10-2011, 08:34 PM
RE: Path node issue... - by Khyrpa - 07-10-2011, 08:36 PM
RE: Path node issue... - by AlexRobillard - 07-10-2011, 08:36 PM
RE: Path node issue... - by Khyrpa - 07-10-2011, 08:38 PM
RE: Path node issue... - by AlexRobillard - 07-10-2011, 08:46 PM



Users browsing this thread: 7 Guest(s)