- 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?
Thanks in forward.
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 )
-
-
-
-