Viperdream
Member
Posts: 124
Threads: 16
Joined: Jan 2011
Reputation:
0
|
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 |
|