- Joined
- Jul 14, 2007
- Messages
- 34
Hey, I was wondering if there is a way to save a variable for use in another function while it's in the same trigger; here's how it's set up.
any help would be greatly appreciated, also; is there any additional cleaning that would have to be done to prevent leaks created by "saving" the variable?
JASS:
function whatever1 takes nothing returns nothing
does something (Required Variable Here)
endfunction
function whatever2 takes some stuff returns nothing
does stuff
Acquires variable here (ex. angle = GetAngleBetweenPoints(localpointa,localpointb) )
endfunction
any help would be greatly appreciated, also; is there any additional cleaning that would have to be done to prevent leaks created by "saving" the variable?