Name | Type | is_array | initial_value |
Cheater | player | No | |
Creep_Position | location | Yes | |
Creep_Type | unitcode | Yes | |
GuardTower1North | unit | No | |
GuardTower1South | unit | No | |
GuardTower2North | unit | No | |
GuardTower2South | unit | No | |
Keep | unit | No | |
Loop | integer | No | |
random | integer | No | |
Stronghold | unit | No | |
TheAlliance | force | No | |
TheHorde | force | No | |
WatchTower1North | unit | No | |
WatchTower1South | unit | No | |
WatchTower2North | unit | No | |
WatchTower2South | unit | No |
function Trig_Revive_Creeps_Actions takes nothing returns nothing
local integer CUSTOM
set CUSTOM = GetUnitUserData(GetDyingUnit())
call TriggerSleepAction( 80.00 )
call CreateNUnitsAtLoc( 1, udg_Creep_Type[CUSTOM], Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Position[CUSTOM], bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), CUSTOM )
endfunction
//===========================================================================
function InitTrig_Revive_Creeps takes nothing returns nothing
set gg_trg_Revive_Creeps = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Creeps, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Revive_Creeps, function Trig_Revive_Creeps_Actions )
endfunction