How is it possible to trigger the zombies like in zombiecastrophe attack based on player locations. For example, in my mod I triggered the zombies so that they only attack the starting locations of the players, but when the players expand the zombies doesn't attack the expos and still only focus on starting(original) locations.
I can't seem to find the correct triggers to make them attack anywhere a user/player is in.
You could place regions, and have events checking for when a building is placed in the region or even unit enters region but never leaves. then let the zombies attack in the region.
I would have a pick eatch unit (Zombie) and do action: Issue order to attack (targetting point) point (Position of a random building owned by the player).
And have another trigger with event "Unit becomes idle" Condition: Unit type == Zombie, then do another issue order.
So when they are created they attack toward a building, and if they reach the point and they stop, they will be assigned another target. It is not perfect as for example, if you start building something but cancel it, some units will go there still. Also, in some circumstances, the event "Unit becomes idle" could potentially not fire when there are too many units clumped together.
How is it possible to trigger the zombies like in zombiecastrophe attack based on player locations. For example, in my mod I triggered the zombies so that they only attack the starting locations of the players, but when the players expand the zombies doesn't attack the expos and still only focus on starting(original) locations.
I can't seem to find the correct triggers to make them attack anywhere a user/player is in.
Not sure if there is an already made trigger. You could make them attack the position of a random building owned by the target player.
If they have certain building they have to build at the base and expansion you could issue an order to the zombies to attack those places.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
You could place regions, and have events checking for when a building is placed in the region or even unit enters region but never leaves. then let the zombies attack in the region.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
I would have a pick eatch unit (Zombie) and do action: Issue order to attack (targetting point) point (Position of a random building owned by the player).
And have another trigger with event "Unit becomes idle" Condition: Unit type == Zombie, then do another issue order.
So when they are created they attack toward a building, and if they reach the point and they stop, they will be assigned another target. It is not perfect as for example, if you start building something but cancel it, some units will go there still. Also, in some circumstances, the event "Unit becomes idle" could potentially not fire when there are too many units clumped together.
Working on projects: