Can someone tell me if this trigger leaks?

RadiuS.x

Active Member
Reaction score
2
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?

Trigger:
  • 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>)

Trigger:
  • 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>

Trigger:
  • 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
 

O.A

Quantum physics rules
Reaction score
29
Not 100% sure but i think the point leaks when you create a unit? At least i hope it does because i've always been using a temp_point when creating units, then using the custom script to remove the location... if it doesn't i've been doing that for nothing, oh well...

Edit: Nevermind, just realized you're reusing the location...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top