Here's my trigger. It's for a respawn system. I need to know if it leaks. If so, where? And how do I fix it?
-
Map ini
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Respawn_Fade[1] = 100.00
-
Set Respawn_Unit[1] = Fallen 0040 <gen>
-
Set Temp_Point[1] = (Position of Fallen 0040 <gen>)
-
-
-
Respawn1
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Triggering unit) Equal to Respawn_Unit[1]
-
-
Actions
-
Wait 15.00 seconds
-
Unit - Remove Respawn_Unit[1] from the game
-
Unit - Create 1 Fallen for Player 1 (Red) at Temp_Point[1] facing 23.07 degrees
-
Set Respawn_Unit[1] = (Last created unit)
-
Animation - Change Respawn_Unit[1]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-
Trigger - Turn on Respawn1 Fade <gen>
-
-
-
Respawn1 Fade
-
Events
-
Time - Every 0.04 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Respawn_Fade[1] Equal to 0.00
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Set Respawn_Fade[1] = 100.00
-
-
Else - Actions
-
Set Respawn_Fade[1] = (Respawn_Fade[1] - 2.00)
-
Animation - Change Respawn_Unit[1]'s vertex coloring to (100.00%, 100.00%, 100.00%) with Respawn_Fade[1]% transparency
-
-
-
-