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
#2
RE: How to make enemys patrol

For the patrolling thing? You can just do this:
AddEnemyPatrolNode("tai_1", "PathNodeArea_1", 10000.0f, "IdleExtra3");

But then he just stands there and I don't think that's what you are looking for :<
Anyway, if the player is close enough. Then he will return to his first path node after reaching the last one though.
You could try something with that.

For the spawn, do this:
SetEntityPlayerInteractCallback("cabinet", "monsterspawn", true);

The cabinet is the entity the player has to interact with to activate the function. "monsterspawn" is the function.
And then add a script for the function
void monsterspawn(string &in entity)
{
SetEntityActive("monster", true);
}

(This post was last modified: 03-13-2011, 06:35 PM by Viperdream.)
03-13-2011, 06:34 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



Users browsing this thread: 2 Guest(s)