|
楼主 |
发表于 2006-5-7 18:09:01
|
显示全部楼层
送2楼的一份礼物:
function Trig_Kill_Dark_Archon_Conditions takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(Dark Archon)) != PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_Kill_Dark_Archon_Func001002 takes nothing returns nothing
call ExplodeUnitBJ( GetEnumUnit() )
endfunction
function Trig_Kill_Dark_Archon_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), Player(Dark Archon)), function Trig_Kill_Dark_Archon_Func001002 )
endfunction
//===========================================================================
function InitTrig_Kill_Dark_Archon takes nothing returns nothing
set gg_trg_Kill_Dark_Archon = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kill_Dark_Archon, 1.00 )
call TriggerAddCondition( gg_trg_Kill_Dark_Archon, Condition( function Trig_Kill_Dark_Archon_Conditions ) )
call TriggerAddAction( gg_trg_Kill_Dark_Archon, function Trig_Kill_Dark_Archon_Actions )
endfunction |
|