DroppingAmmo
Gets called when the player is dropping ammo.
Start a script section
!-- OnEvent DroppingAmmo
-- require @evPlayer $evType $evAmount $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerDroppingAmmoEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets or sets the player who is dropping the ammo. |
$evType | ItemType enum value | Gets or sets the type of ammo being dropped. |
$evAmount | number value | Gets or sets the amount of ammo being dropped. |
$evIsAllowed | bool value | Whether the event is allowed to run. |