ShootingWeapon
Gets called when the player is shooting from a weapon.
Start a script section
!-- OnEvent ShootingWeapon
-- require @evPlayer *evFirearmItem $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerShootingWeaponEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is shooting. |
*evFirearmItem | reference to FirearmItem object | Gets the firearm that the player shooting from. |
$evIsAllowed | bool value | Whether the event is allowed to run. |