integer
real
boolean
string
code
function temp takes nothing returns nothing
local location l
if (boolean expression) then
set l = something
// do stuff with l
call RemoveLocation(l)
set l = null
endif
// we don't null l here because it won't be equal to anything, and thus it won't leak
endfunction
local image i = CreateImage(...)
call DestroyImage(i)
call CreateImage(...)
local image b
local image i = CreateImage(...)
call DestroyImage(i)
set b = CreateImage(...)
if (b == i) then
call BJDebugMsg("that's the case")
endif
call TriggerAddCondition( gg_trg_Respawn_Copy, Condition( IsNeutralHostile ) )
call TriggerAddCondition(gg_trg_Respawn_Copy, Condition((1)))
local unit group GetUnits = GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function IsNeutralHostile))
local unit group = GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function IsNeutralHostile))
call TriggerAddCondition( gg_trg_Respawn_Copy, Condition( function IsNeutralHostile ) )
call TriggerAddCondition( gg_trg_Respawn_Copy, function IsNeutralHostile )
call TriggerAddCondition(gg_trg_Respawn_Copy, Condition(function IsNeutralHostile))