How could I get the Mortal Kombat sounds to work in pve
Posted: Sat Aug 20, 2005 2:10 pm
I am willing to edit code but I dont know what I need to make to work on mobs. I know itll have to do with like
the unitisplayer("target"), possibly, but I dont know what to do, I want all the pvp features to work with pve
Code: Select all
function MKombat_OnEvent()
if( event == "UNIT_HEALTH") then
if( arg1 == "target" and UnitHealth("target") < 20 and UnitHealth("target") > 0 and not healthFinishHim ) then
if( UnitName("target") and UnitIsPlayer("target") and UnitIsEnemy("player", "target") ) then
-- PLAY FINISH HIM!!!
MKombat_PlayFile( g_MKombat_Packs[MK_CurrentPack]["FINISH_THEM"] );
healthFinishHim = true;
end