|
楼主 |
发表于 2010-5-22 19:50:34
|
显示全部楼层
我想用哈希表里面储存的单位去注册指定单位事件怎么不可以呢?触发不鸟啊!
function Trig_kill_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_004" )
endfunction
//===========================================================================
function InitTrig_kill takes nothing returns nothing
set gg_trg_killyou = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_killyou,LoadUnitHandle(udg_HT,GetHandleId(udg_time),1), EVENT_UNIT_DAMAGED)
call TriggerAddAction( gg_trg_killyou, function Trig_killyou_Actions )
endfunction |
|