SendingVoiceMessage
Gets called when the player is sending a voice message.
Start a script section
!-- OnEvent SendingVoiceMessage
-- require @evPlayer *evMessage $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerSendingVoiceMessageEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is going to send the voice message. |
*evMessage | reference to VoiceMessage object | Gets the VoiceMessage being sent. |
$evIsAllowed | bool value | Gets or sets a value indicating whether the voice message is allowed to be sent. Remarks: If this is but the VoiceChatChannel is None this will be ignored. |