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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player searching for ammo pickup. |
*evAmmoPickup | reference to AmmoPickup object | Gets the ammo pickup. |
$evIsAllowed | bool value | Whether the event is allowed to run. |