Does this leak?

MP®

Member
Reaction score
11
When in your trigger you first remove a point variable, then recreate it and don't remove it, until the trigger is run again? Or even in another trigger that runs after it?

Lets assume that the point will not be created again before it is removed.

I suppose it shouldn't but I'm not sure.. Or should you remove a point every time as soon as possible in the same trigger after you use it?
 

jnZ

I
Reaction score
64
global variables are meant to be used in more than one function - thats why they are called 'global'. if you would always destroy the globals at the end of a trigger there would be no way to exchange data with other triggers.
 

MP®

Member
Reaction score
11
Ok thnx and another small question:

Does this action work?

Set DamageSource = HeroPlayer[(Custom value of DamageSource)]

So 2 unit variables: The variable DamageSource which is currently unit X has to change to unit 'HeroPlayer[array]'. This array is the custom value of the current unit X. Will this cause problems?
 

MP®

Member
Reaction score
11
Maybe because it sets the variable to something else at the same time as using it to set it.. ah nvm it works :p
 
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