Destroy units in region

xfirenzx

New Member
Reaction score
7
I need help with a trigger I made that is supposed to destroy all units a a certain region after two minutes but I cant get them to be destroyed.

Here is my trigger so far

Code:
Choose character timer start
    Events
        Time - Elapsed game time is 9.00 seconds
    Conditions
    Actions
        Trigger - Turn off (This trigger)
        Countdown Timer - Create a timer window for (Last started timer) with title Time Left...
        Countdown Timer - Change the color of the title for (Last created timer window) to (95.00%, 75.00%, 25.00%) with 0.00% transparency
        Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 120.00 seconds
        Wait 121.00 seconds
        Countdown Timer - Destroy (Last created timer window)

Code:
Choose character timer end
    Events
        Time - Elapsed game time is 130.00 seconds
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in Region 001 <gen>) and do (Unit - Remove (Triggering unit) from the game)

thanks
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Unit Group - Pick every unit in (Units in Region 001 <gen>) and do (Unit - Remove (Triggering unit) from the game)

Triggering unit? :confused: there is none. Try (Picked unit) :p

You should also work with the event "Timer expires" instead of elapsed time. You are using a timer, why not, well, use it? ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top