Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2024.1.2.8726 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2024.1.2
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