Quote
Originally posted by Potomax:
**
Quote
Originally posted by GrahamVH:
**Did you add a attack sound to the player or it it the default one? If so where did you add it?
**
Yes, I did. I added it in the weapon creation dialog.
So before I posted a reply, I tried to delete it... and it worked ! Thanks a lot !
But... does this mean we can't add a specific sound to a weapon ? I don't need it, but this must be useful to some...
**
You can create a sound for each weapon. I just wouldn't recommend doing it in the weapon dialog. What I would recommend is that you
1. create a global called gb_UsedWeapon and set all of the weapons to have it set the gb_usedWeapon to what ever the weapon is called in the equip event link in the weapon dialog.
2. Then create an event called "attack" which has a conditional statement to figure out what weapon is equipped. For example if gb_UsedWeapon is equal to "short sword" then play sound short "short sword". and so on.
3. Then open the animation that you have for the player; look in the player's attack animation. Double click on all of the frames that have a sound icon next to them and change the "3-play sound" to "6-Launch an event". Replace any thing in the textbox with "attack". Then do this to the rest of the frames with a sound icon next to them, Then your done
------------------
Thanks,
GrahamVH
graham@vhpublications.com
http://www.warcraftc...t/CGD/home.html