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
Patrol Nodes don't work on spawned enemy
RedMser Offline
Junior Member

Posts: 40
Threads: 12
Joined: Mar 2012
Reputation: 1
#3
RE: Patrol Nodes don't work on spawned enemy

Oh sorry, didn't see that. Damn, code. Dodgy


CreateEntityAtArea("servant_grunt", "servant_grunt.ent", "ScriptArea_2", false);
CreateParticleSystemAtEntity("", "ps_ghost_release.ps", "ScriptArea_2", false);
switch(GetLocalVarInt("var_room")) {
case 1:
AddDebugMessage("Going to Room 1", false);
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_1", RandFloat(1,2), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_2", RandFloat(1,2), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_17", RandFloat(1,2), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_16", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_15", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_10", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_75", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_54", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_48", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_49", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_51", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_52", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_53", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_51", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_49", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_50", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_47", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_45", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_46", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_54", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_48", RandFloat(3,8), "");
AddEnemyPatrolNode("servant_grunt", "PathNodeArea_75", RandFloat(3,8), "");
break;


I hope that snippet is enough, but if needed, I submit the whole code.
04-10-2012, 08:28 PM
Find


Messages In This Thread
RE: Patrol Nodes don't work on spawned enemy - by RedMser - 04-10-2012, 08:28 PM



Users browsing this thread: 2 Guest(s)