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.

In the Cube demo that ships with Wwise, how do I get the Hit_Rocket_Player event to trigger through the game engine?

0 votes

 I've been trying to create my own implementation of the Cube demo that shipped with Wwise v2014.1 (5158) but have hit a brick wall with the Hit_Rocket_Player call not triggering a sound asset (the rocket explosion) in-game. I get an Event ID Not Found call every time it should play but I can't figure out where the problem is. Everything works fine in the Soundcaster, but not when try it in the engine.  I've made sure to check that all of the events are included in the soundbank.The Fire_Rocket_Player and End_Rocket_Player events both work fine, by the way.

When I pulled up the Wwise implementation that comes with the installation package, to see how they did it, I found the same problem in the shipped version. How can I get the explosion file to trigger in-game?

asked Jan 22, 2015 in General Discussion by Bryn S. (150 points)

1 Answer

+1 vote
 
Best answer
Hi Bryn
 
You can fix it by changing one line of code in the weapon.cpp file
On line 211 replace this piece of code;
 
snd_event(guns[p->gun].eventhit, &v );
 
With this;
 
snd_event(name, p );
 
 
For some reason this hit event is set up differently in the code to the Start and End events, but this change seemed to fix it for me.
 
Cheers

 

answered Jan 29, 2015 by Simon G. (990 points)
selected Feb 11, 2015 by Bryn S.
Brilliant, Simon. It took a little bit of futzing to get Visual Studio 2013 to work with the Cube solution, but that seems to have fixed both the player's missiles and enemy projectiles in one fell swoop.
...