Skip to main content

SearchingAmmo

Gets called when the player is searching for ammo.

Start a script section

!-- OnEvent SearchingAmmo
-- require @evPlayer *evAmmoPickup $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerSearchingAmmoEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player searching for ammo pickup.
*evAmmoPickupreference to AmmoPickup objectGets the ammo pickup.
$evIsAllowedbool valueWhether the event is allowed to run.