Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Hello, I have a big zombie map. I want the randomly spawning zombies to chase the player, how would I do this?
-TRIED:
-Acquisition range set to 9999999
-Map Initiate, giving zombies vision of entire map.
And what was wrong with this methodology? I personally didn't like this way because I found the AI would always close to the closest player. I wanted everyone to receive more of a share of attackers.
Here is a system I developed for a map one time. It causes the attackers to move to a random unit with the group. It's kind of like a tag map, so I only added the main builder unit from each player within this group.
Register Aliens
Events
Unit - A unit enters (Playable map area)
Conditions
((Owner of (Triggering unit)) is in AliensPlayerGroup) Equal to True
Actions
Unit Group - Add (Triggering unit) to AlienUnitGroup
Set Random_Destination = (Position of (Random unit from Idiots))
Unit - Order (Triggering unit) to Patrol To Random_Destination
With triggers like this, its important to keep track of the "AlienUnitGroup". You don't want to "pick every unit" every 16 seconds. That creates a new unit group every time, and if you have lots of zombies, it could really lag your map. Just manually remove the unit on death:
Respawn Aliens
Events
Unit - A unit Dies
Conditions
((Owner of (Triggering unit)) is in AliensPlayerGroup) Equal to True
Actions
Unit Group - Remove (Triggering unit) from AlienUnitGroup
Your welcome to wait if anyone has a better solution.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.