Audio::playAmbientSpeechWithVoice: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
This is the same as _PLAY_AMBIENT_SPEECH1 and _PLAY_AMBIENT_SPEECH2 but it will allow you to play a speech file from a specific voice file. It works on players and all peds, even animals.<br><br>EX (C#):<br>GTA.Native.Function.Call(Hash._0x3523634255FC3318, Game.Player.Character, 'GENERIC_INSULT_HIGH', 's_m_y_sheriff_01_white_full_01', 'SPEECH_PARAMS_FORCE_SHOUTED', 0);<br><br>The first param is the ped you want to play it on, the second is the speech name, the third is the voice name, the fourth is the speech param, and the last param is usually always 0.<br><br>Full list of speeches and voices names by alexguirre: gist.github.com/alexguirre/0af600eb3d4c91ad4f900120a63b8992==Syntax==<syntaxhighlight lang="javascript">audio.playAmbientSpeechWithVoice(p0, speechName, voiceName, speechParam, p4);</syntaxhighlight>=== Required Arguments ===*'''p0:''' Ped handle or object*'''speechName:''' String*'''voiceName:''' String*'''speechParam:''' String*'''p4:''' Boolean===Return value===*'''Undefined'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{Audio_function_c}}[[Category:Clientside API]][[Category:TODO: Example]]
This is the same as _PLAY_AMBIENT_SPEECH1 and _PLAY_AMBIENT_SPEECH2 but it will allow you to play a speech file from a specific voice file. It works on players and all peds, even animals.<br><br>EX (C#):<br>GTA.Native.Function.Call(Hash._0x3523634255FC3318, Game.Player.Character, 'GENERIC_INSULT_HIGH', 's_m_y_sheriff_01_white_full_01', 'SPEECH_PARAMS_FORCE_SHOUTED', 0);<br><br>The first param is the ped you want to play it on, the second is the speech name, the third is the voice name, the fourth is the speech param, and the last param is usually always 0.<br><br>Full list of speeches and voices names by alexguirre: gist.github.com/alexguirre/0af600eb3d4c91ad4f900120a63b8992
==Syntax==
<syntaxhighlight lang="javascript">audio.playAmbientSpeechWithVoice(p0, speechName, voiceName, speechParam, p4);</syntaxhighlight>
=== Required Arguments ===
*'''p0:''' Ped handle or object
*'''speechName:''' String
*'''voiceName:''' String
*'''speechParam:''' String
*'''p4:''' Boolean
===Return value===
*'''Undefined'''
==Example==
<syntaxhighlight lang="javascript">
todo
</syntaxhighlight>
==See also==
{{Audio_function_c}}
[[Category:Clientside API]]
[[Category:TODO: Example]]

Revision as of 20:19, 6 May 2017

This is the same as _PLAY_AMBIENT_SPEECH1 and _PLAY_AMBIENT_SPEECH2 but it will allow you to play a speech file from a specific voice file. It works on players and all peds, even animals.

EX (C#):
GTA.Native.Function.Call(Hash._0x3523634255FC3318, Game.Player.Character, 'GENERIC_INSULT_HIGH', 's_m_y_sheriff_01_white_full_01', 'SPEECH_PARAMS_FORCE_SHOUTED', 0);

The first param is the ped you want to play it on, the second is the speech name, the third is the voice name, the fourth is the speech param, and the last param is usually always 0.

Full list of speeches and voices names by alexguirre: gist.github.com/alexguirre/0af600eb3d4c91ad4f900120a63b8992

Syntax

audio.playAmbientSpeechWithVoice(p0, speechName, voiceName, speechParam, p4);

Required Arguments

  • p0: Ped handle or object
  • speechName: String
  • voiceName: String
  • speechParam: String
  • p4: Boolean

Return value

  • Undefined

Example

todo

See also

Template:Audio function c