I
IKilledKEnny
Guest
Current Questions
Yes another question, I don't understand why it crushes WE.
Code:
function CreateBarrelDGCon takes nothing returns boolean
return GetDestructableTypeId(GetEnumDestructable())=='LTex'))
endfunction
function CreateBarrelGDAct takes nothing returns nothing
local integer i=0
if (CreateBarrelDGCon()) then
set i=1
endif
if i==0 then
call CreateDestructable(LTex,GetRectCenterX(gg_rct_Barrle_Region),GetRectCenterX(gg_rct_Barrle_Region),0,1,1)
endif
endfunction
function CreateBarrelAct takes nothing returns nothing
call EnumDestructablesInRectAll(gg_rct_Barrle_Region,function CreateBarrelGDAct)
endfunction
//===========================================================================
function InitTrig_Create_Barrel takes nothing returns nothing
set gg_trg_Create_Barrel = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Create_Barrel, 5.00 )
call TriggerAddAction(gg_trg_Create_Barrel, function CreateBarrelAct)
endfunction
Yes another question, I don't understand why it crushes WE.