DamagingShootingTarget
Gets called when the player is damaging a shooting target toy.
Start a script section
!-- OnEvent DamagingShootingTarget
-- require @evPlayer *evShootingTarget *evDamageHandler $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerDamagingShootingTargetEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is damaging the shooting target. |
*evShootingTarget | reference to ShootingTargetToy object | Gets the shooting target. |
*evDamageHandler | reference to StandardDamageHandler object | Gets the damage handler. |
$evIsAllowed | bool value | Whether the event is allowed to run. |