Set udg_bla = GetTriggeringUnit()
As long as you set the variable in the variable editor, it's global.. to prove that, make a new trigger and only set a variable in it.
It will look like this
- Set bla = (Triggering unit)
Then convert the trigger into jass and it will look like this
or similar.JASS:Set udg_bla = GetTriggeringUnit()
udg stands for user defined global (as far as i know and is therefore global
set udg_bla = GetTriggerUnit()
Max 1 per trigger.to set globals to locals in GUI
custom script local variabletype udg_variable
and use it in your trigger
Blah, please look into reference leaks before preaching how they work.set it to no unit and try to nullify it with custom script: set udg_Temp_cast = null
Removing an object only is necessary when you want to remove it from the game's memory; in the case of locations, since you won't be using them again but they are objects, this is required.ok so this is the problem:
I made a variable tip: "Set Temp_Cast = Casting Unit"
I donno how to remove the variable.... i know that for temp_points is "cal udg removelocation(temp_point) .... need help...i'm a bit confused...