KuKulKan
T.E.T.Я.I.S
- 2/8/09
- 629
- 430
Mã:
globals
unit UNITP=null
endglobals
scope [B]A[/B] initializer IntCreate_unit
function Create_Actions takes nothing returns nothing
[B]set UNITP = CreateUnit(Player(2), 'hfoo', 0,0, bj_UNIT_FACING )[/B]
endfunction
function IntCreate_unit takes nothing returns nothing
[B]local trigger Create = CreateTrigger( )[/B]
call TriggerRegisterTimerEventPeriodic( Create, 5.00 )
call TriggerAddAction( Create, function Create_Actions )
endfunction
endscope
//===========================================================================
scope [B]B[/B] initializer IntKill_unit1
function Kill_unit1_Conditions takes nothing returns boolean
[B]return GetDyingUnit() == UNITP[/B]
endfunction
function Kill_unit1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "nod..." )
endfunction
function IntKill_unit1 takes nothing returns nothing
[B]local trigger Kill_unit1 = CreateTrigger( )[/B]
call TriggerRegisterAnyUnitEventBJ( Kill_unit1, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( Kill_unit1, Condition( function Kill_unit1_Conditions ) )
call TriggerAddAction( Kill_unit1, function Kill_unit1_Actions )
endfunction
endscope
Không bik có phải kingwar muốn làm như thế, Kan fix lại rùi kingwar có thể so sánh
Chỉnh sửa cuối:



