OnPlayerStartTalking

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

onPlayerStartTalking

Triggered when the server accepts the start of a player's voice transmission.

Availability

This event is available in server-side scripts.

Callback signature

onPlayerStartTalking(playerId)

Parameters

Name Type Description
playerId int The player that started transmitting voice.

Examples

Handle the event:

addEventHandler("onPlayerStartTalking", root, function(playerId)
    outputDebugString(getPlayerName(playerId) .. " started talking")
end)

Notes

  • This is an authoritative activity edge after voice policy, mute, rate and packet validation.
  • The compatibility alias onPlayerVoiceStart is emitted for the same transition.