Does it leak?

chopperpope

New Member
Reaction score
12
can someone tell me which of these scripts leak?
Code:
pick all players in (allies of player 12) and do actions.
Code:
set JUMPER = (triggering unit)[COLOR="Red"]I'm not destroing the JUMPER variable after using it[/COLOR]
Code:
create 1 Drone at (center of region002<gen>)
 

saw792

Is known to say things. That is all.
Reaction score
280
The first and the third both leak. #1 leaks a force, #3 leaks a location.
 

saw792

Is known to say things. That is all.
Reaction score
280
Units do not leak. The handle that is created is the unit. You don't want to destroy the unit, do you? After all, a leak is only something that is no longer needed, like that temporary force and temporary location. The unit is permanent, and you want it to stay so there is no use in destroying it. You are merely setting a variable to a unit that already exists. It doesn't create a new handle.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top