Skip to main content

PickedUpAmmo

Gets called when the player has picked up ammo.

Start a script section

!-- OnEvent PickedUpAmmo
-- require @evPlayer $evAmmoType $evAmmoAmount *evAmmoPickup

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerPickedUpAmmoEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player that picked up the ammo.
$evAmmoTypeItemType enum valueGets type of the ammo.
$evAmmoAmountnumber valueGets the amount that is was picked up.
*evAmmoPickupreference to AmmoPickup objectGets the ammo pickup object.