|
Post by bender on Aug 27, 2019 11:56:42 GMT
If your asking for a sound effect when you swing:
I had to do the same thing. If I remember correctly, it's in the FullBody layer under WeakAttack/StrongAttack -> Unarmed. Add the vTriggerOnSound script (That may be the totally wrong script) to the punch there. I forget exactly which animation it is. Also, I noticed that when you give that script an offset trigger time of anything > 0, you'll get the effect twice. I didn't bother looking into it.
If your looking for a sound effect when you connect: Not really sure but it should be fairly simple to add something to the hitbox script if it doesn't already have something.
|
|
|
Post by bender on Aug 27, 2019 19:23:31 GMT
Don't really know where he triggers the sound when you make contact but try looking at the hitBoxes.
|
|
|
Post by bender on Aug 27, 2019 22:49:30 GMT
Just got back and realized what I did. I used the vPunchingBag script (b/c I'm actually using punching bags) and added a simple public "AudioClip" property, then in TakeDamage, I played it.
|
|