Evote
New Member
- Reaction score
- 4
How do i cancel construction of a unit with a trigger???
PHP:
aura power
Events
Unit - A unit Begins an upgrade
Conditions
(Unit-type of (Constructing structure)) Equal to Sim Aura.
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Power[(Player number of (Owner of (Constructing structure)))] Less than 30
Then - Actions
Selection - Add (Constructing structure) to selection for (Owner of (Constructing structure))
Wait 0.10 seconds
Game - Force (Owner of (Constructing structure)) to press the key esc
Player - Add 150 to (Owner of (Constructing structure)) Current gold
Else - Actions
Do nothing