felix
New Member
Posts: 4
Posts: 4
|
Post by felix on Aug 6, 2016 7:35:08 GMT
Hi,
in a Zombie game I trigger random Zombie Sounds with Master Audio Groups, the typical moaning like ahhh, uhhhh, ... . I have one group for Idle Zombie Sounds and one group for Attacking Zombie Sounds. Everything works fine with multiple Zombies, I attach the sound to the caller.
Now, I want to trigger an additional "Hurt Sound" when the Zombie is hit by a bullet, like a crying sound. In this moment, I want to stop the other Zombie moaning sounds because it cant cry and moan on the same time. Having only one zombie works fine, but I dont want to mute the whole moaning groups for all the other Zombies that should not be affected.
What would be the best to do this with Master Audio?
Thanks!
|
|
|
Post by DarkTonic Dev on Aug 6, 2016 17:36:21 GMT
MasterAudio.StopSoundGroupOfTransform API command.
Also Stop Sound Group Of Transform is available from EventSounds if it's a common event (collision / despawned / etc) for a no coding solution.
|
|