SetPedAudioType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Sets a ped's audio type. ==Syntax== <syntaxhighlight lang="lua">bool setPedAudioType ( ped thePed, string audio )</syntaxhighlight> ===Required Arguments=== *'''thePed:''' the ped whos...)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Client function}}
{{Deprecated}}
Use [[setPedVoice]] instead.
__NOTOC__
__NOTOC__
{{Client function}}
Sets a ped's audio type.
Sets a ped's audio type.


Line 14: Line 16:
**PED_TYPE_GANG
**PED_TYPE_GANG
**PED_TYPE_GFD
**PED_TYPE_GFD
**PED_TYPE_SPC


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

Latest revision as of 01:48, 1 March 2014

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

Use setPedVoice instead.

Sets a ped's audio type.

Syntax

bool setPedAudioType ( ped thePed, string audio )

Required Arguments

  • thePed: the ped whose audio type to change.
  • audio: the name of the audio type to set. Possible values are:
    • PED_TYPE_GEN
    • PED_TYPE_EMG
    • PED_TYPE_PLAYER
    • PED_TYPE_GANG
    • PED_TYPE_GFD

Returns

Returns true if the voice type was set successfully, false otherwise.

See Also