function Trig_Dummy_Removal_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Aloc' ) ) then
return false
endif
return true
endfunction
function Trig_Dummy_Removal_Actions takes nothing returns nothing
local unit dummy = GetTriggerUnit()
call TriggerSleepAction( 1.00 )
call RemoveUnit( dummy )
endfunction
//===========================================================================
function InitTrig_Dummy_Removal takes nothing returns nothing
set gg_trg_Dummy_Removal = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dummy_Removal, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Dummy_Removal, Condition( function Trig_Dummy_Removal_Conditions ) )
call TriggerAddAction( gg_trg_Dummy_Removal, function Trig_Dummy_Removal_Actions )
endfunction
[TRIGGER]Hero Know
Events
Unit - A unit enters (Playable map area)
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
[/TRIGGER]