| 07-27-2003, 08:40 AM | #1 |
I have a trigger that creates units in an area every few game seconds. I want to setup a trigger that selects all units in this area every 2 minutes and tells them to attack a point. Help? Thxemote_sweat |
| 07-27-2003, 09:07 AM | #2 |
Try something similiar to this: Events Time - Every 120.00 seconds of game time Conditions Actions Unit Group - Pick every unit in (Units in (Area)) and do Unit - Order (Picked unit) to Attack-Move To (Center of (Area)) |
| 07-27-2003, 03:25 PM | #3 |
My way of doing it... CREATING UNITS Events Time - Every 45.00 seconds of game time Conditions (Necropolis 0027 <gen> is alive) Equal to True Actions For each (Integer A) from 1 to 4, do (Actions) Loop - Actions Unit - Create 1 Ghoul for Player 11 (Dark Green) at (Center of UD MainSpawn1 <gen>) facing Default building facing degrees Unit - Order (Last created unit) to Attack-Move To (Center of Human Spawn <gen>) Unit - Set the custom value of (Last created unit) to 10 TELL UNITS TO ATTACK AGAIN IF THEY IDLE Events Unit - A unit owned by Player 11 (Dark Green) Is issued an order with no target Conditions (Custom value of (Triggering unit)) Equal to 10 Actions Unit - Order (Triggering unit) to Attack-Move To (Center of Human Spawn <gen>) |
