Skip to main content

DryFiringWeapon

Gets called when the player is dry-firing a weapon.

Start a script section

!-- OnEvent DryFiringWeapon
-- require @evPlayer *evFirearmItem $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is dry firing.
*evFirearmItemreference to FirearmItem objectGets the weapon item.
$evIsAllowedbool valueWhether the event is allowed to run.