Version

menu_open
Wwise SDK 2024.1.1
Quick Start Sample Integration - Triggers

Trigger Example

You can launch a trigger with the AK::SoundEngine::PostTrigger() function:

AK::SoundEngine::PostTrigger( AK::TRIGGERS::PUZZLE_SOLVED, GAME_OBJECT_ID_HUMAN );

The AK::SoundEngine::PostTrigger() method also accepts strings (Unicode or Ansi) instead of IDs. In this case you would specify the name of the trigger, as defined by the Wwise user:

AK::SoundEngine::PostTrigger( L"Puzzle_Solved", GAME_OBJECT_ID_HUMAN );

Refer to Integration Details - Triggers for more details.

AKSOUNDENGINE_API AKRESULT PostTrigger(AkTriggerID in_triggerID, AkGameObjectID in_gameObjectID)

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise