SetPlayerVoiceTone: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 7: Line 7:
{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|playerId|The player identifier.}}
{{FuncParam|playerId|The player identifier.}}
{{FuncParam|VoiceTone|'''male''' or '''female'''.}}
{{FuncParam|VoiceTone|The voice tone as a string: '''male''' or '''female'''.}}


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

Latest revision as of 10:17, 14 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
    The voice tone as a string: male or female.

Return Value

  • Returns true on success.

Example

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

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

See also

_EDIT_ME_