BaseAmmoPickupclass

A world pickup that tops up the collector's reserve ammo pool instead of taking a slot. Give it an `Sandbox.BaseAmmoResource` and an amount; picking it up donates into the pool (`Sandbox.BaseInventoryComponent.GiveAmmo(Sandbox.BaseAmmoResource,System.Int32)`) and the pickup is consumed. When the pool is full it refuses - no prompt, and Touch leaves it lying there.

objectBaseInventoryItemBaseAmmoPickup
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.BaseAmmoPickup : Sandbox.BaseInventoryItem

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

Properties2

Showing 2 properties

public int Sandbox.BaseAmmoPickup.Amount { get; set; }PUBLICGETSET

Rounds granted on pickup.

Returns:int

On this page