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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is interacting with the target. |
*evShootingTarget | reference to ShootingTargetToy object | Gets the shooting target. |
$evIsAllowed | bool value | Whether the event is allowed to run. |