Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 3
Posts: 10
Join Date: Dec 2006
Make sound play on enter combat -
01-09-2008
Ok here goes..I searched and found nothing but this is how you make sound play when you attack a mob
function Name_onCombat (pUnit, Event)
pUnit:PlaySoundToSet (SOUND ID)
end
RegisterUnitEvent (MOB ID, 1, "NAME_onCombat")
punit and on is too close my bad its suppose to start under where his name starts I think sorry
ok so name id put Illdan_stormrage I think you have to put _ if theres a space
Sound ID choose one from [Only registered and activated users can see links. ] (Thank you Succy) I use 11466 ;D MOB ID would be 22917 and name Illidan_stormrage_onCombat
So it looks like
function Illidan_Stormrage_onCombat(pUnit, Event)
pUnit:PlaySoundToSet (11466)
end
RegisterUnitEvent (22917, 1, "Illidan_Stormrage_onCombat")
Hope this helps ...sorry again if its been posted ;/
Last edited by fireicexxx; 01-09-2008 at 12:29 AM..
Reason: Messed up on punit hope this fixed it