• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] GUI - Issues with Lightning Alpha

Status
Not open for further replies.
Level 30
Joined
Jan 31, 2010
Messages
3,551
Hey there. I have made a code for custom lightning which doesn't need to be MUI or MPI. Everything went fine, but there's one thing that's bothering me. No matter how I set it, the alpha of lightning will never fade down.

What am I doing wrong?
  • Moon Finale Move
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set LightningCount = (LightningCount + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LightningCount Equal to 100
        • Then - Actions
          • Custom script: call RemoveLocation( udg_TempPoint )
          • Custom script: call RemoveLocation( udg_tempPoint )
          • Lightning - Destroy MoonFinaleLightning[1]
          • Lightning - Destroy MoonFinaleLightning[2]
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Set ColorLightning = (1.00 - 0.01)
          • Set tempPoint = (Position of MoonFinaleUnits[1])
          • Set TempPoint = (Position of MoonFinaleUnits[2])
          • Lightning - Change color of MoonFinaleLightning[1] to (1.00 0.00 0.80) with ColorLightning alpha
          • Lightning - Change color of MoonFinaleLightning[2] to (0.80 0.00 1.00) with ColorLightning alpha
          • Lightning - Move MoonFinaleLightning[1] to source tempPoint and target TempPoint
          • Lightning - Move MoonFinaleLightning[2] to source tempPoint and target TempPoint
          • Custom script: call RemoveLocation( udg_TempPoint )
          • Custom script: call RemoveLocation( udg_tempPoint )
Thanks in forward.
 
Status
Not open for further replies.
Top