- Joined
- Feb 1, 2013
- Messages
- 43
I'm trying to make a trigger that respawns a random set of creeps inside a region when the region has no units in it (other than neutral passive, because there are animals). This is what I came up with:
Can anyone tell me how to make a trigger that does that?
-
Bottom Spawn
-
Events
- Time - Every 10.00 seconds of game time
- Conditions
-
Actions
- Unit Group - Pick every unit in (Units in Region 022 <gen> matching (((Triggering unit) is alive) Equal to True)) and do (If ((Owner of (Picked unit)) Equal to Neutral Passive) then do (Unit - Create 5 Bandit for Neutral Hostile at (Center of Region 022 <gen>) facing Default building facing degrees) else do (Do nothing))
-
Events
Can anyone tell me how to make a trigger that does that?