SetPlayerVoiceTone: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
Created page with "{{Info|Function|Client|1.1.0}} {{FuncDescription|Switches the player voice tone.}} {{FuncSyntax|SetPlayerVoiceTone(playerId, bEnable)}} {{FuncParameters}} {{FuncParam|gende..."
 
No edit summary
Line 3: Line 3:
{{FuncDescription|Switches the player voice tone.}}
{{FuncDescription|Switches the player voice tone.}}


{{FuncSyntax|SetPlayerVoiceTone(playerId, bEnable)}}
{{FuncSyntax|SetPlayerVoiceTone(playerId, VoiceTone)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|gender|'''male''' or '''female'''.}}
{{FuncParam|playerId|The player identifier.}}
{{FuncParam|VoiceTone|'''male''' or '''female'''.}}


{{FuncReturnValue|Returns '''true''' on success.}}
{{FuncReturnValue|Returns '''true''' on success.}}

Revision as of 16:01, 8 March 2020

SetPlayerVoiceTone

Type: Function
Context: Client
Introduced: v1.1.0

Description

Switches the player voice tone.

Syntax

SetPlayerVoiceTone(playerId, VoiceTone)

Parameters

  • playerId
    The player identifier.
  • VoiceTone
    male or female.

Return Value

  • Returns true on success.

Example

-- If male
SetPlayerVoiceTone(GetPlayerId(), "male")

-- If female
SetPlayerVoiceTone(GetPlayerId(), "female")

See also

_EDIT_ME_