Name | Type | is_array | initial_value |
Button | button | Yes | |
Choose | rect | Yes | |
Click | boolean | No | false |
DBox | dialog | No | |
EZ_regionr | rect | Yes | |
GroupPlayaaa | force | No | |
Init_Time | timer | No | |
Kicker | unit | No | |
Leader | leaderboard | No | |
Name | string | Yes | |
Player_Unit | unit | Yes | |
Randomness | integer | No | |
Score | integer | Yes | 0 |
TeamScore | integer | Yes | |
Time | integer | No | 300 |
WalkGroup | group | Yes | |
WindWalk | group | No |
function Trig_Ping_a_Actions takes nothing returns nothing
call PingMinimapLocForForce( GetPlayersAll(), GetUnitLoc(gg_unit_h001_0002), 0.50 )
endfunction
//===========================================================================
function InitTrig_Ping_a takes nothing returns nothing
set gg_trg_Ping_a = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ping_a, 2 )
call TriggerAddAction( gg_trg_Ping_a, function Trig_Ping_a_Actions )
endfunction
function Trig_Kick_a_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_h001_0002 ) ) then
return false
endif
return true
endfunction
function Trig_Kick_a_Actions takes nothing returns nothing
set udg_Kicker = GetAttacker()
call SetUnitFlyHeightBJ( gg_unit_h001_0002, 100.00, 200.00 )
call EnableTrigger( gg_trg_Kick_b )
call TriggerSleepAction( 0.40 )
call SetUnitFlyHeightBJ( gg_unit_h001_0002, 0.00, 200.00 )
call TriggerSleepAction( 0.40 )
call DisableTrigger( gg_trg_Kick_b )
call TriggerSleepAction( 0.40 )
set udg_Kicker = null
endfunction
//===========================================================================
function InitTrig_Kick_a takes nothing returns nothing
set gg_trg_Kick_a = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kick_a, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Kick_a, Condition( function Trig_Kick_a_Conditions ) )
call TriggerAddAction( gg_trg_Kick_a, function Trig_Kick_a_Actions )
endfunction
function Trig_Kick_b_Actions takes nothing returns nothing
call SetUnitPositionLoc( gg_unit_h001_0002, PolarProjectionBJ(GetUnitLoc(gg_unit_h001_0002), 9.00, GetUnitFacing(udg_Kicker)) )
endfunction
//===========================================================================
function InitTrig_Kick_b takes nothing returns nothing
set gg_trg_Kick_b = CreateTrigger( )
call DisableTrigger( gg_trg_Kick_b )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kick_b, 0.01 )
call TriggerAddAction( gg_trg_Kick_b, function Trig_Kick_b_Actions )
endfunction