if true or false then // Always true endif if false or false then // Always false endif if true or true then // Always true endif
local unit u = GetTriggerUnit() if u == YourType1 then //Do actions elseif u == YourType2 then //Do actions elseif u == YourType3 then //Do actions endif set u = null
function Enum_CheckStuff takes nothing returns boolean return (GetWidgetLife(GetEnumUnit()) > 500) or (IsUnitType(GetEnumUnit(), UNIT_TYPE_DEAD)) endfunction
call KillUnit(u)