- Joined
- Mar 26, 2009
- Messages
- 301
Me an my friend were discussing; he says whenever a appointed variable is used, you need to nullfy the variable and re-appoint it (everytime). Read it very CAREFULLY; it is not that he is talking about appointing same variable to different value without putting nullfy trigger commands (via custom scripts) or anything.
For Ex:
Set "VariableUnit" = Triggering Unit
Move "VariableUnit" to blah blah
Wait 2 seconds
Move "VariableUnit" to "another location"
So we used the same unit variable without any nullfy action between them. Does this cause leak?? Or does that happen with any other variable type, such as a point variable?
Example for this:
Set "Point" = Target Point of Ability Being Cast
Move Triggering Unit to "Point"
Create SFX at "Point"
In this case, we used same point variable in two different actions. Does that cause leak?
For Ex:
Set "VariableUnit" = Triggering Unit
Move "VariableUnit" to blah blah
Wait 2 seconds
Move "VariableUnit" to "another location"
So we used the same unit variable without any nullfy action between them. Does this cause leak?? Or does that happen with any other variable type, such as a point variable?
Example for this:
Set "Point" = Target Point of Ability Being Cast
Move Triggering Unit to "Point"
Create SFX at "Point"
In this case, we used same point variable in two different actions. Does that cause leak?
Last edited: