PedPlayAmbientSpeech Method (String, String, Int32, SpeechModifier)

RAGE Plugin Hook Documentation

[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

Assuming the Ped's current voice is "A_F_M_TRAMPBEAC_01_WHITE_FULL_01", plays a random of the following speeches. GENERIC_THANKS_01 GENERIC_THANKS_02 GENERIC_THANKS_03
PlayAmbientSpeech(null, "GENERIC_THANKS", 0, SpeechModifier.Force);
Examples

Assuming the Ped's current voice is "A_F_M_TRAMPBEAC_01_WHITE_FULL_01", plays GENERIC_THANKS_02.
PlayAmbientSpeech(null, "GENERIC_THANKS", 2, SpeechModifier.Force);
See Also

Reference