SetPedVoice: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Undo revision 17914 by Arc (Talk))
Line 5: Line 5:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setPedVoice ( ped thePed, int type, string voice )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPedVoice ( ped thePed, int type, string firstVoice, string lastVoice )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''thePed:''' the ped whose voice to change.
*'''thePed:''' the ped whose voice to change.
*'''type:''' a number from 0 to 4 that specifies a voice type.
*'''type:''' a number from 0 to 4 that specifies a voice type.
*'''voice:''' name of the first voice to use from the type. See [[ped voices]].
*'''firstVoice:''' name of the first voice to use from the type. See [[ped voices]].
*'''lastVoice:''' name of the last voice to use from the type. See [[ped voices]].


===Returns===
===Returns===

Revision as of 17:35, 30 November 2008

Changes the voice of a ped.

Syntax

bool setPedVoice ( ped thePed, int type, string firstVoice, string lastVoice )

Required Arguments

  • thePed: the ped whose voice to change.
  • type: a number from 0 to 4 that specifies a voice type.
  • firstVoice: name of the first voice to use from the type. See ped voices.
  • lastVoice: name of the last voice to use from the type. See ped voices.

Returns

Returns true when the voice was successfully set, false otherwise.

See Also