Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is damaging the shooting target.
*evShootingTargetreference to ShootingTargetToy objectGets the shooting target.
*evDamageHandlerreference to StandardDamageHandler objectGets the damage handler.
$evIsAllowedbool valueWhether the event is allowed to run.