jnZ
I
- Reaction score
- 64
Hey guys,
I use a power-system in my map that turns every structure with less than 1 mana (energy) off. (pauses them and changes vertex coloring to 20% 20% 20%) But i dont want it to effect constructing structures because theyll stop constructon if paused.
is there a condition for my unitgroup-pick for buildings being constructed?
thanks in advance, heres the trigger
I use a power-system in my map that turns every structure with less than 1 mana (energy) off. (pauses them and changes vertex coloring to 20% 20% 20%) But i dont want it to effect constructing structures because theyll stop constructon if paused.
is there a condition for my unitgroup-pick for buildings being constructed?
thanks in advance, heres the trigger
Code:
Power System
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set TempGroup = (Units in (Entire map) matching ((((Matching unit) is A structure) Equal to True) and ((Max mana of (Matching unit)) Greater than 0.00)))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Less than or equal to 0.00
Then - Actions
Unit - Pause (Picked unit)
Animation - Change (Picked unit)'s vertex coloring to (20.00%, 20.00%, 20.00%) with 0.00% transparency
Else - Actions
Unit - Unpause (Picked unit)
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Custom script: call DestroyGroup( udg_TempGroup )