Does it leak?

simonake

New Member
Reaction score
72
I created a Unit spawn and i wanted to know if the locations leaks. I use the same locations each seconds and they're set at the map initialization. Triggers
Trigger:
  • Spawning
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Unit - Create 1 zSpawn_UnitType for Player 12 (Brown) at zTempSpawnPoint[(Integer A)] facing 0.00 degrees
 

jig7c

Stop reading me...-statement
Reaction score
123
put a removeloc line in just to be safe...
call RemoveLocation (udg_zTempSpawnPoint[bj_loopAindex])

not sure about the bold part though... pretty sure its correct...
 

Exide

I am amazingly focused right now!
Reaction score
448
I created a Unit spawn and i wanted to know if the locations leaks. I use the same locations each seconds and they're set at the map initialization.

No, it won't leak. -As long as you don't overwrite the point variables. And make sure you don't use the same loop elsewhere, it might cause bugs.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top