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
[ok not that Solved] How to make enemys patrol
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#18
RE: [ok not that Solved] How to make enemys patrol

Just place path nodes, place them close enough together and then put this in the OnStart() or wherever you want him to move:
void OnStart()
{
AddEnemyPatrolNode("Tomcruise", "PatrolNode1", 0.0f, "flex.dae");//Animation isn't nesscesary, you can just leave it blank there (""). First one is the name of the monster, second is the node. You only have to add the 1 and the last node unless you want the monster to stop at every node, 3th is the amount of seconds he'll stay there and last one is the animation he will do when he is at that node. As I said, it isn't needed.
AddEnemyPatrolNode("Tomcruise", "PatrolNode50", 0.0f, "kiss.dae");
}

(This post was last modified: 03-20-2011, 11:45 PM by Viperdream.)
03-20-2011, 11:45 PM
Find


Messages In This Thread
RE: How to make enemys patrol - by Viperdream - 03-13-2011, 06:34 PM
RE: How to make enemys patrol - by Danny Boy - 03-13-2011, 07:27 PM
RE: [ok not that Solved] How to make enemys patrol - by Viperdream - 03-20-2011, 11:45 PM



Users browsing this thread: 1 Guest(s)