ThePlague
New Member
- Reaction score
- 14
set udg_tempunit= GetTriggerUnit()
since this is a global and will be overwritten constantly is there any need to nullify this?
also since it is only temporary to avoid leaking with GetTriggerUnit()
does it make any difference if i use
set udg_tempunit= GetTriggerUnit()
or
local unit temp= GetTriggerUnit()
Edit: this is just for simple triggers with few actions and no waits
since this is a global and will be overwritten constantly is there any need to nullify this?
also since it is only temporary to avoid leaking with GetTriggerUnit()
does it make any difference if i use
set udg_tempunit= GetTriggerUnit()
or
local unit temp= GetTriggerUnit()
Edit: this is just for simple triggers with few actions and no waits