Name | Type | is_array | initial_value |
testUnit | unit | No |
function Trig_Kill_Selected_Func001001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), Player(0)) == true )
endfunction
function Trig_Kill_Selected_Func001A takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Kill_Selected_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Kill_Selected_Func001001002)), function Trig_Kill_Selected_Func001A )
endfunction
//===========================================================================
function InitTrig_Kill_Selected takes nothing returns nothing
set gg_trg_Kill_Selected = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kill_Selected, Player(0), "die", true )
call TriggerAddAction( gg_trg_Kill_Selected, function Trig_Kill_Selected_Actions )
endfunction
function Trig_GiveToNH_Func001A takes nothing returns nothing
call SetUnitOwner( GetEnumUnit(), Player(PLAYER_NEUTRAL_AGGRESSIVE), true )
endfunction
function Trig_GiveToNH_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_GiveToNH_Func001A )
endfunction
//===========================================================================
function InitTrig_GiveToNH takes nothing returns nothing
set gg_trg_GiveToNH = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_GiveToNH, Player(0), "givecreep", true )
call TriggerAddAction( gg_trg_GiveToNH, function Trig_GiveToNH_Actions )
endfunction
function Trig_order_random_point_test_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_testUnit, "move", PolarProjectionBJ(GetRectCenter(GetPlayableMapRect()), 256, 1.00) )
call IssuePointOrderLocBJ( udg_testUnit, "move", OffsetLocation(GetRectCenter(GetPlayableMapRect()), 3.00, -2.00) )
endfunction
//===========================================================================
function InitTrig_order_random_point_test takes nothing returns nothing
set gg_trg_order_random_point_test = CreateTrigger( )
call TriggerAddAction( gg_trg_order_random_point_test, function Trig_order_random_point_test_Actions )
endfunction