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
2 enemys
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#5
RE: 2 enemys

(11-13-2011, 08:16 PM)Darion97 Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "PlayerCollide2", "MonsterFunction2", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
}

void MonsterFunction2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_2", true);
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_3", 2, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_10", 0, "");
}

void OnEnter()
{

}

void OnLeave()
{

}
thank you i tried that and it works now. thank you
11-13-2011, 09:47 PM
Find


Messages In This Thread
2 enemys - by aqfitz622 - 11-13-2011, 06:45 PM
RE: 2 enemys - by Your Computer - 11-13-2011, 08:16 PM
RE: 2 enemys - by Darion97 - 11-13-2011, 08:16 PM
RE: 2 enemys - by aqfitz622 - 11-13-2011, 09:47 PM
RE: 2 enemys - by aqfitz622 - 11-13-2011, 08:24 PM



Users browsing this thread: 1 Guest(s)