Hi all,
I'm fiddling around with the spawning of units and made the following script that makes sense to me but doesn't work :S
What I'd like the code to do is: You must have 2 units standing in the region to spawn an unit called Redeemer every 2 seconds until you remove the units from the region.
Edit: How do I move this script myself to the right section?
I'm fiddling around with the spawning of units and made the following script that makes sense to me but doesn't work :S
Code:
Events
- Unit - A unit enters Region 024 <gen>
- Time - Every 2.00 Seconds of game time
Conditions
- ((Triggering unit) is A ground unit) Equal to ((Triggering unit) is in (Random 2 units from (Units in (Playable map area))))
Actions
Unit - Create 1 Redeemer for (Owner of (Triggering unit)) at (((Owner of (Triggering unit)) start location) offset by (0.00, 0.00)) facing Default building facing degrees
What I'd like the code to do is: You must have 2 units standing in the region to spawn an unit called Redeemer every 2 seconds until you remove the units from the region.
Edit: How do I move this script myself to the right section?
Last edited: