Multiple "get hit" sounds

Is there a way to do that? Like having different voices saying "OUCH" when you get hit?

Thanks

------------------
Life is a joke - death is testing your humour...

not until we have actual hit/miss detection.

------------------
"Stiney! Get me a danish!"
Check out teh 1337 sig: (url="http://"http://server4.uploadit.org/files2/130104-Ogre_Bobfinal.jpg")Teh 1337 sig(/url)
Proud Shaman of (url="http://"http://forums.evula.com/viewforum.php?f=52")Clan EVW(/url)

Weapons have hit/miss event checks on them. Try this:

Weapon hit event: Set gb_soundRandom (or whatever else you want) to a random number (say, 0-2).
If gb_soundRandom == 0, play sound0.wav.
If gb_soundRandom == 1, play sound1.wav.
If gb_soundRandom == 2, play sound2.wav.

I believe (but am not sure) that if you equip the NPCs with a weapon, they will cause the same effect when they hit the player...

------------------
Cha0s
(url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)

Quote

Originally posted by CI-Ia0s:
**Weapons have hit/miss event checks on them. Try this:

Weapon hit event: Set gb_soundRandom (or whatever else you want) to a random number (say, 0-2).
If gb_soundRandom == 0, play sound0.wav.
If gb_soundRandom == 1, play sound1.wav.
If gb_soundRandom == 2, play sound2.wav.

I believe (but am not sure) that if you equip the NPCs with a weapon, they will cause the same effect when they hit the player...

**

An NPC will only use a weapon if it wants to do a ranged attack. however the player contact event link may work.

------------------
Thanks,
GrahamVH
graham@warcraftcentral.com
Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

yes, I know they have a hit/miss link, but currently the event runs no matter if it's a hit or miss, so you'd have the "ouch" sound whenever the NPC attacks you, hit or miss.

------------------
"Stiney! Get me a danish!"
Check out teh 1337 sig: (url="http://"http://server4.uploadit.org/files2/130104-Ogre_Bobfinal.jpg")Teh 1337 sig(/url)
Proud Shaman of (url="http://"http://forums.evula.com/viewforum.php?f=52")Clan EVW(/url)

Oh... that sucks... :frown:

------------------
Cha0s
(url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)

kay. thanks anyway;P

------------------
Life is a joke - death is testing your humour...