Skip to main content

InteractingShootingTarget

Gets called when the player is interacting with a shooting target.

Start a script section

!-- OnEvent InteractingShootingTarget
-- require @evPlayer *evShootingTarget $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerInteractingShootingTargetEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is interacting with the target.
*evShootingTargetreference to ShootingTargetToy objectGets the shooting target.
$evIsAllowedbool valueWhether the event is allowed to run.