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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player that picked up the ammo. |
$evAmmoType | ItemType enum value | Gets type of the ammo. |
$evAmmoAmount | number value | Gets the amount that is was picked up. |
*evAmmoPickup | reference to AmmoPickup object | Gets the ammo pickup object. |