Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is dropping the ammo.
$evTypeItemType enum valueGets the type of ammo being dropped.
$evAmountnumber valueGets the amount of ammo being dropped.
*evAmmoPickupreference to AmmoPickup objectGets the ammo pickup.