⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ModularFirearmAmmoPickup MonoBehaviour

    Overview

    The ModularFirearmAmmoPickup behaviour is used in tandem with the ModularFirearmDrop when a character drops the weapon they are holding. It takes the magazine ammo count from the weapon as it is dropped, so that no extra ammo is spawned or lost.

    Inspector

    ModularFirearmAmmoPickup

    Properties

    Name Type Description
    Weapon Pickup InteractablePickup The pickup attached to the weapon drop.
    Ammo Object FpsInventoryAmmo The ammo inventory item.
    Display Mesh GameObject The display mesh for the weapon magazine. Will be hidden when the ammo is collected.
    Collider Delay Float The delay before the ammo collider is enabled. Prevents the character dropping the weapon collecting the ammo immediately.

    See Also

    Modular Firearms

    ModularFirearmDrop

    FpsInventoryAmmo

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX