Table of Contents

Class FirearmPickup

Namespace
Exiled.API.Features.Pickups
Assembly
Exiled.API.dll

A wrapper class for a Firearm pickup.

public class FirearmPickup : Pickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<FirearmPickup>
Inheritance
FirearmPickup
Implements
IWrapper<ItemPickupBase>
IWrapper<FirearmPickup>
Inherited Members
Extension Methods

Properties

Ammo

Gets or sets a value indicating how much ammo have this FirearmPickup.

public int Ammo { get; set; }

Property Value

int

AmmoDrain

Gets or sets the ammo drain per shoot.

public int AmmoDrain { get; set; }

Property Value

int

Remarks

Always 1 by default. Applied on a high layer nether basegame ammo controllers.

Attachments

Gets or sets a value indicating whether the attachment code have this FirearmPickup.

public uint Attachments { get; set; }

Property Value

uint

Base

Gets the InventorySystem.Items.Firearms.FirearmPickup that this class is encapsulating.

public FirearmPickup Base { get; }

Property Value

FirearmPickup

IsDistributed

Gets a value indicating whether the pickup is already distributed.

[Obsolete("Feature deprecated")]
public bool IsDistributed { get; }

Property Value

bool

MaxAmmo

Gets or sets a value indicating how much ammo can contain this FirearmPickup.

public int MaxAmmo { get; set; }

Property Value

int

Methods

Distribute()

Initializes the item as if it was spawned naturally by map generation.

public void Distribute()

InitializeProperties(ItemBase)

initialize item properties.

protected override void InitializeProperties(ItemBase itemBase)

Parameters

itemBase ItemBase

target item.

ToString()

Returns the FirearmPickup in a human-readable format.

public override string ToString()

Returns

string

A string containing FirearmPickup related data.