Sverkerman
Hosted Project: BoW
- Joined
- Feb 28, 2010
- Messages
- 1,325
Hello!
I'm putting this in request as there might not be a system like this one out there yet!
I'm making a system that plays a sound each time a unit attacks (A unit takes damage.)
This system plays different attack sounds depending on the "weapon" the damaging unit has.
Why not use the object editor and the default attack sounds?
It is not possible to change a unit's attack sound ingame via triggers (as far as I'm concerned?)
What does this all lead to?
In my map you can pick up different weapons such as an axe, sword, hammer etc. Each weapon has an attatchment model. I'm making the attack sounds different for each weapon. A unit can dual wield weapons in which case I need to track which animation was the last animation that the damaging unit played to determine if the weapon sound for the right hand or the left hand should be played.
To conclude
I need some kind of system that tells me which animation a unit intends to play or JUST played so that I can track if I should play the right hand attack sound or the left hand attack sound. Animation is being runned before dealing damage so refering to Last Animation Played within a Unit Takes Damage event such as the one produced by Bribes Damage System should work. I just need a good way of checking which animation was played.
Any help results in +4 rep! I want to say thanks to this awesome community that has helped me to solve these kinds of problems over my years with the map editor, you are all truly awesome!
I'm putting this in request as there might not be a system like this one out there yet!
I'm making a system that plays a sound each time a unit attacks (A unit takes damage.)
This system plays different attack sounds depending on the "weapon" the damaging unit has.
Why not use the object editor and the default attack sounds?
It is not possible to change a unit's attack sound ingame via triggers (as far as I'm concerned?)
What does this all lead to?
In my map you can pick up different weapons such as an axe, sword, hammer etc. Each weapon has an attatchment model. I'm making the attack sounds different for each weapon. A unit can dual wield weapons in which case I need to track which animation was the last animation that the damaging unit played to determine if the weapon sound for the right hand or the left hand should be played.
To conclude
I need some kind of system that tells me which animation a unit intends to play or JUST played so that I can track if I should play the right hand attack sound or the left hand attack sound. Animation is being runned before dealing damage so refering to Last Animation Played within a Unit Takes Damage event such as the one produced by Bribes Damage System should work. I just need a good way of checking which animation was played.
Any help results in +4 rep! I want to say thanks to this awesome community that has helped me to solve these kinds of problems over my years with the map editor, you are all truly awesome!