|
发表于 2013-2-27 14:57:49
|
显示全部楼层
本帖最后由 cynsw 于 2013-2-27 15:11 编辑
[jass]function Trig_1Conditions takes nothing returns boolean
return ((IsUnitAliveBJ(gg_unit_Obla_0004) == true))
endfunction
function Trig_1Actions takes nothing returns nothing
set udg_Temp = GetRectCenter(udg_a)
call CreateNUnitsAtLoc( ( udg_U[1] + 1 ), 'hfoo', Player(0), udg_Temp, bj_UNIT_FACING )
call RemoveLocation( udg_Temp )
endfunction
//===========================================================================
function InitTrig_1 takes nothing returns nothing
set gg_trg_1 = CreateTrigger()
call TriggerRegisterTimerEventPeriodic( gg_trg_1, 5.00 )
call TriggerAddCondition(gg_trg_1, Condition(function Trig_1Conditions))
call TriggerAddAction(gg_trg_1, function Trig_1Actions)
endfunction[/jass]
你说呢 |
|