function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local location p = GetUnitLoc(u)
local player a = GetOwningPlayer(u)
if GetOwningPlayer(GetDyingUnit()) == Player(0) then
call TriggerSleepAction(5)
call CreateUnitAtLoc(a, GetUnitTypeId(u), p, 270)
endif
set u = null
set p = null
set a = null
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction