DroppedAmmo
Gets called when the player has dropped ammo.
Start a script section
!-- OnEvent DroppedAmmo
-- require @evPlayer $evType $evAmount *evAmmoPickup
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerDroppedAmmoEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is dropping the ammo. |
$evType | ItemType enum value | Gets the type of ammo being dropped. |
$evAmount | number value | Gets the amount of ammo being dropped. |
*evAmmoPickup | reference to AmmoPickup object | Gets the ammo pickup. |