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