• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Unit Fade Over Time

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
  • Your trigger
    • Event
      • Time - Every 1.00 seconds of the game time
    • Conditions
    • Actions
      • Set Counter = (Counter + 1)
      • Animation - Change YourUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with (100 - (20 x Counter))% transparency
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Counter Greater than or equal to 5
        • Then - Actions
          • Set Counter = 0
          • Trigger - Turn off (This trigger)
        • Else - Actions
The (100 - (20 x Counter)) means it goes in steps of 20% transparency per second, which are 5 steps (Counter Greater then or equal to 5). You can do it in different steps, but remember to change both then.
 
Status
Not open for further replies.
Top