Fluffball
Well-Known Member
- Reaction score
- 35
I have a trigger, that will create an effect above a unit, but I want the effect and the unit to be green, the only problem I have is, that I want to set that units colours back to their original state, without massive amounts of If/Then/Elses for each unit, anyone know how to set it back? Thanks already.
Code:
Corrupted LightBuff
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Set TempUGroup = (Units in (Playable map area) matching (((Triggering unit) has buff Acid Bomb) Equal to True))
Unit Group - Pick every unit in TempUGroup and do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\NightElf\Starfall\StarfallCaster.mdl
Animation - Change (Picked unit)'s vertex coloring to (0.00%, 100.00%, 0.00%) with 0.00% transparency
Wait until (((Picked unit) has buff Acid Bomb) Equal to True), checking every 0.10 seconds
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency