⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    AddInventoryItemToolAction MonoBehaviour

    Overview

    The AddInventoryItemToolAction behaviour is used to add inventory items to the tool wielder's inventory when used. This is useful for things like repairing armour.

    Inspector

    AddInventoryItemToolAction

    Properties

    Name Type Description
    Timing Dropdown When should the item be consumed.
    Item Prefab FpsInventoryItem An inventory item prefab to add to the character inventory if none is found.
    Interval Integer The items should be added every nth fixed update frame in continuous mode.
    Instant Boolean Should the item be added on the first frame of the continuous action, or should it wait for the first interval to elapse.
    Count Integer The number of times to add the item.
    Reset Timer On Stop Boolean Should the countdown between adding items be reset when you stop using the item.

    See Also

    Wieldable Tools

    Inventory

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