Variable for Player

Squll2

je'ne sais pas
Reaction score
76
i think he means jass version of player? am i right

the jass version is well..

player..

lol ^^
 

Linear88

New Member
Reaction score
2
No, I meant like a custom script to prevent leaks.

Like:

Set PlayerCheck = Player 1
<<Actions>>
Custom Script: RemovePlayer?????

I'm not sure of the custom script.
 

RunningAway

Cool Member
Reaction score
1
Theres no reason too because its already leak free, you're just returning a value poiting to a player. If you're using it as a local variable then you can nullify it at the end, but if its a global then you don't need to do anything.

If you're just going to nullify it all you have to do is custom script: 'set varname = null'
 

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
If you are talking about "Player" variables, local variables need to be Null. As for globals, just leave them be. No leaks as far as I know.

If you are asking for "PlayerGroup" variables, both global and local need to be destroyed, and locals need to be null too.

In case you want (this is for GUI, global variables):
Custom Script: set bj_wantDestroyForce = true
<some playergroup actions>

OR

set TempPlayerGroup =
<some playergroup actions using TempPlayerGroup>
Custom Script: call DestroyForce(udg_TempPlayerGroup)
 
General chit-chat
Help Users

      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