Uszi
New Member
- Reaction score
- 5
Hey,
So I'm working on a spell that raises a zombie from a player's victims. The zombie spawning itself is working out fine.
I'm trying to figure out a way though to make it so that the zombies will belong to the player, but the player will have no control over them. The zombies are just supposed to start chasing the nearest enemy, but I don't want to the player to be able to give them any orders about where to go or who to attack.
The spell is for a multiplayer map, and it would really simplify things if I found a way to do this, without making the zombies not belong to the player.
Do I need to make a custom AI?
Is there a trigger function to like, "Attack the nearest enemy unit?"
So far I was thinking of putting triggers in place to clear the selection if you choose your own zombie, and/or to just cancel any orders issued by the player. But how to make the zombie attack, that's what I've been dealing with now?
Thanks
So I'm working on a spell that raises a zombie from a player's victims. The zombie spawning itself is working out fine.
I'm trying to figure out a way though to make it so that the zombies will belong to the player, but the player will have no control over them. The zombies are just supposed to start chasing the nearest enemy, but I don't want to the player to be able to give them any orders about where to go or who to attack.
The spell is for a multiplayer map, and it would really simplify things if I found a way to do this, without making the zombies not belong to the player.
Do I need to make a custom AI?
Is there a trigger function to like, "Attack the nearest enemy unit?"
So far I was thinking of putting triggers in place to clear the selection if you choose your own zombie, and/or to just cancel any orders issued by the player. But how to make the zombie attack, that's what I've been dealing with now?
Thanks