• 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.

[Solved] GUI - Issues with Lightning Alpha

Status
Not open for further replies.
Level 30
Joined
Jan 31, 2010
Messages
3,552
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