[This is preliminary documentation and is subject to change.]
Plays the specified ambient speech.
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
public void PlayAmbientSpeech( string voiceName, string speechName, int number, SpeechModifier modifier )
Parameters
- voiceName
- Type: SystemString
The name of the voice to use. If null the Ped's current voice will be used. - speechName
- Type: SystemString
The name of the ambient speech to play. - number
- Type: SystemInt32
The number of the ambient speech to play. If equal to, or less than 0, a random number will be chosen. - modifier
- Type: RageSpeechModifier
A value indicating how to play the speech.
Examples
PlayAmbientSpeech(null, "GENERIC_THANKS", 0, SpeechModifier.Force);
Examples
PlayAmbientSpeech(null, "GENERIC_THANKS", 2, SpeechModifier.Force);
See Also