|
这个JASS总是有一个错误,就是在倒数第2行那个 TriggerAddAction(添加事件)后面括号里面的gg_trg_solider 他总是说错误的函数名!!
谁能告诉我这是怎么回事呢?
[codes=jass]function Trig_solider_Actions takes nothing returns nothing
local integer i=0
call TriggerSleepAction( 2 )
loop
set i=i+1
exitwhen i>10
call CreateNUnitsAtLoc( 1, 'hfoo', Player(0), GetRectCenter(GetCurrentCameraBoundsMapRectBJ()), bj_UNIT_FACING )
call TriggerSleepAction(2)
endloop
endfunction
//===========================================================================
function InitTrig_solider takes nothing returns nothing
set gg_trg_solider = CreateTrigger( )
call TriggerAddAction( gg_trg_solider , function Trig_solider_Actions )
endfunction[/codes] |
|