I
IKilledKEnny
Guest
Code:
function DestroyCirclesGAtions takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function DestroyCirclesGConditions takes nothing returns boolean
if GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))!=PLAYER_SLOT_STATE_PLAYING then
return true
endif
return false
endfunction
function DestroyCirclesAct takes nothing returns nothing
local boolexpr b=Condition(function DestroyCirclesGConditions)
local group g=GroupEnumUnitsInRect(g,GetWorldBounds(),b)
ForGrouo(g,function DestroyCirclesGAtions)
call DestroyGroup(g)
call DestroyBoolExpr(b)
set b=null
set g=null
endfunction
//===========================================================================
function InitTrig_Destroy_Circles takes nothing returns nothing
set gg_trg_Destroy_Circles = CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_Destroy_Circles,1.00)
call TriggerAddAction(gg_trg_Destroy_Circles,function DestroyCirclesAct)
endfunction
Still disabled. GAtion is Group Action just that I forgot the c . And how could I make the condition simpler?