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