Platform SDK: Agent

IAgentCharacter::SetSoundEffectsOn

HRESULT SetSoundEffectsOn(
   long bOn  // character sound effects setting 
);

Determines whether the character's sound effects are played.

bOn
Sound effects setting. If this parameter is True, the sound effects for animations are played when the animation plays; if False, sound effects are not played.

This setting determines whether sound effects compiled as a part of the character are played when you play an associated animation. This property's setting applies to all clients of the character. The setting is also subject to the user's global sound effects setting in IAgentAudioOutputProperties::GetUsingSoundEffects.

See Also

IAgentCharacter::GetSoundEffectsOn, IAgentAudioOutputProperties::GetUsingSoundEffects