• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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