SetPlayerVoiceRangePreset

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

setPlayerVoiceRangePreset

Selects a predefined proximity voice range for a player.

Syntax

bool setPlayerVoiceRangePreset(int playerId, string preset)

Parameters

Name Type Required Description
playerId int yes The connected player identifier.
preset string yes One of whisper, normal, shout, or custom.

Returns

Returns true when the validated preset was accepted; otherwise returns false.

Examples

Use the server's shout distance:

setPlayerVoiceRangePreset(playerId, "shout")

Notes

  • Available only in server-side resource scripts.
  • Preset names are case-insensitive.