function Trig_Respawn_Trigger_Actions takes nothing returns nothing
local unit Respawn = GetDyingUnit()
local location Revive = GetUnitLoc(Respawn)
call TriggerSleepAction( 30.00 )
call CreateNUnitsAtLoc( 1, GetUnitTypeId(Respawn), Player(PLAYER_NEUTRAL_AGGRESSIVE), Revive, bj_UNIT_FACING )
call RemoveLocation (Revive)
set Revive = null
set Respawn = null
endfunction
//===========================================================================
function InitTrig_Respawn_Trigger takes nothing returns nothing
set gg_trg_Respawn_Trigger = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Respawn_Trigger, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Respawn_Trigger, function Trig_Respawn_Trigger_Actions )
endfunction