Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Trying to make an interactive machinegun sound.

0 votes
Hey Dear Wwise users,

 

I am Kinda new to Wwise, but i used FMOD in the past.

I am working on a simple shooter-game to practise with Wwise.

My problem is that I am trying to create a machinegun sound for multiple enemies.

Currently I made a looping gun sound that I can call with "Machinegun_event"

I made a stop event to stop the machine gun(with a nice gun tail sound).

Since there are multiple enemies the sound will be Triggerd more than once(which is fine).

But when 1 enemy stops shooting the stop event will be called.

My only fear is that the stop_event will stop the sound of all shooting enemies.

 

If someone could help me confirm that this won't happen or knows a better way to do this that would be great.

GReetings from Joppe
asked Feb 19, 2018 in General Discussion by joppe c. (100 points)

1 Answer

+1 vote
Hey Joppe,

Actions such as play or stop in events operates on a set scope.

"Game Object" - means that the set action will only be performed on the game object that this event is posted on in the game engine. In your case, you want to call stop event with the added tail of your sound set on the game object of the individual enemy, with the scope set to "Game Object" in your event.
"Global" - means that this action will be carried out in all instances of the event on all instances of the game object. This is handy when you want to control every instance of an event or to set a RTPC value globally on all actors that uses it.

Hope that helps!
answered Feb 22, 2018 by Per W. (160 points)
Perfect anwser.

:)

thanks for helping me out!
...