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
Despawns after following path
Greven Offline
Member

Posts: 106
Threads: 13
Joined: May 2011
Reputation: 3
#3
RE: Despawns after following path

Say you have like 3 path nodes. Pathnode1 2 and 3 the only thing you gotta do is add the pathnodes.
void Function()
{
AddEnemyPatrolNode("Monster", "Pathnode1", float afWaitTime, string& asAnimation);
AddEnemyPatrolNode("Monster", "Pathnode2", float afWaitTime, string& asAnimation);
AddEnemyPatrolNode("Monster", "Pathnode3", float afWaitTime, string& asAnimation);
}
And then you just add the pathnode1 again.
void AddEnemyPatrolNode("Monster", "Pathnode1", float afWaitTime, string& asAnimation);

So it will look like this:
void Function()
{
AddEnemyPatrolNode("Monster", "Pathnode1", float afWaitTime, string& asAnimation);
AddEnemyPatrolNode("Monster", "Pathnode2", float afWaitTime, string& asAnimation);
AddEnemyPatrolNode("Monster", "Pathnode3", float afWaitTime, string& asAnimation);
AddEnemyPatrolNode("Monster", "Pathnode1", float afWaitTime, string& asAnimation);
}
Then when it reaches the pathnode1 it will repeat the action by going to number 2 then 3 and then continue patrolling

[WIP] Recidivus
(This post was last modified: 05-27-2011, 02:15 PM by Greven.)
05-27-2011, 02:07 PM
Find


Messages In This Thread
Despawns after following path - by Karai16 - 05-27-2011, 11:18 AM
RE: Despawns after following path - by Mooserider - 05-27-2011, 02:02 PM
RE: Despawns after following path - by Greven - 05-27-2011, 02:07 PM



Users browsing this thread: 1 Guest(s)