|
Post by kukuhbasuki on Sept 3, 2017 7:13:01 GMT
When enemy hit the player there's no hit sound played. When player hit the enemy, sometimes the hit sound don't play.
Any suggestions?
|
|
|
Post by kukuhbasuki on Sept 30, 2017 3:43:40 GMT
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 1, 2017 21:17:07 GMT
It might be a bug, sorry for the late response, Try reimporting Invector and see if it works Cheers! NukeRasberry
|
|
|
Post by Invector on Oct 2, 2017 14:26:57 GMT
I don't think it's a bug, you simple didn't setup the audio... take a look into the melee demo scene, the controller has a vHitEffects setup into the default hitboxs.
You can also use the vTriggerSoundByState to add one or more audioclips directly into a AnimationState
|
|
No audio source in Vhit_Effect
Guest
|
Post by No audio source in Vhit_Effect on Jul 7, 2018 1:39:41 GMT
I added VHit_Effect to my enemy but there is no audiosoure, eve if I add sound Effects, it wont play sounds when hitting the enemy, can some one help?
Regards
|
|
|
Post by Zi Siang See on Apr 27, 2020 4:08:23 GMT
Yep adding a vTriggerSoundByState in an Animation State works well (just like how it was done it the provided DemoScene). Invector works amazingly great!
Best, Zi
|
|
|
Post by kero on Oct 11, 2023 0:38:42 GMT
I added VHit_Effect to my enemy but there is no audiosoure, eve if I add sound Effects, it wont play sounds when hitting the enemy, can some one help? Regards While vTriggerSoundByState can play based on time elapsed during an animation, from what i see in vHitEffects, it seems set up to only attach sound listeners for melee weapons. Temporarily solved this by extending the vHitEffect script and setting it to detect vMeleeAttackobject if no vMelee found. ""
|
|