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
[HELP] Enemy Pathing
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#3
RE: [HELP] Enemy Pathing

Yes, like this. Create a timer telling the enemies to patrol the nodes you want, then have that timer call upon itself at the end. They will loop the path until 'RemoveTimer' is called in another script.
Quote:void patrol_1(string &in asTimer)
{
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddTimer("patrol_1", 2.0f, "patrol_1");
}

[Image: signature-2.png]
06-28-2012, 10:10 PM
Find


Messages In This Thread
[HELP] Enemy Pathing - by himynamebob1 - 06-28-2012, 09:18 PM
RE: [HELP] Enemy Pathing - by Damascus - 06-28-2012, 09:23 PM
RE: [HELP] Enemy Pathing - by Streetboat - 06-28-2012, 10:10 PM



Users browsing this thread: 1 Guest(s)