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
himynamebob1 Offline
Member

Posts: 57
Threads: 12
Joined: Jun 2012
Reputation: 0
#1
[HELP] Enemy Pathing

Is there a way to make an enemy repeat its path nodes?
06-28-2012, 09:18 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#2
RE: [HELP] Enemy Pathing

You can refer to this recent thread for help on that:

http://www.frictionalgames.com/forum/thread-16458.html

06-28-2012, 09:23 PM
Find
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




Users browsing this thread: 1 Guest(s)