Code: Select all
trigger gg_trg_SeiseDeath=null
function Trig_SeiseDeathConditions takes nothing returns boolean
return((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))
endfunction
function InitTrig_SeiseDeath takes nothing returns nothing
set gg_trg_SeiseDeath=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_SeiseDeath,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_SeiseDeath,Condition(function Trig_SeiseDeathConditions))
call TriggerAddAction(gg_trg_SeiseDeath,function Trig_SeiseDeathActions)
endfunction
call InitTrig_SeiseDeath()
Code: Select all
if((GetUnitTypeId(GetDyingUnit())=='H022')and(GetUnitTypeId(GetKillingUnitBJ())=='H0FX'))then
call psnd("war3mapImported\\KVSH.mp3")
else
endif
Code: Select all
if((GetUnitTypeId(GetDyingUnit())=='H02S')and(IsUnitIllusionBJ(GetDyingUnit())==false))then
call psnd("war3mapImported\\JeanneAltdeath.mp3")
else
endif
Code: Select all
if(GetUnitTypeId(GetKillingUnit())=='H01R')then
call psnd4("war3mapImported\\AizenKill1.mp3","war3mapImported\\AizenKill2.mp3","war3mapImported\\AizenKill3.mp3","war3mapImported\\AizenKill4.mp3")
endif