PickingUpAmmo
Gets called when the player is picking up ammo.
Start a script section
!-- OnEvent PickingUpAmmo
-- require @evPlayer $evAmmoType $evAmmoAmount *evAmmoPickup $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerPickingUpAmmoEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is picking up the ammo pickup. |
$evAmmoType | ItemType enum value | Gets type of the ammo. |
$evAmmoAmount | number value | Gets the amount of ammo that is being picked up. |
*evAmmoPickup | reference to AmmoPickup object | Gets the ammo pickup. |
$evIsAllowed | bool value | Whether the event is allowed to run. |