SendingHitmarker
Gets called when a hitmarker is being sent to a player.
Start a script section
!-- OnEvent SendingHitmarker
-- require @evPlayer $evSize $evPlayAudio $evHitmarker $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerSendingHitmarkerEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets or sets the player that the hitmarker is being sent to. |
$evSize | number value | Gets or sets the target size multiplier. |
$evPlayAudio | bool value | Gets or sets a value indicating whether the hitmarker sound effect should play. |
$evHitmarker | HitmarkerType enum value | Gets or sets a the type of the hitmarker. |
$evIsAllowed | bool value | Whether the event is allowed to run. |