⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    StandardModularFirearmAttachment MonoBehaviour

    Overview

    The StandardModularFirearmAttachment behaviour is an example implementation of the ModularFirearmAttachment base class which allows you to specify the attachment's name. You can also optionally specify a required inventory item. If this is specified, then the character will need to have an inventory item with the same ID in their inventory in order to use this attachment.

    An attachment can be installed into a socket.

    Inspector

    StandardModularFirearmAttachment

    Properties

    Name Type Description
    Display Name String The name that will be used in an attachments UI where the type is unspecified (eg "High Capacity Magazine").
    List Name String A shorter name that might be used in a list where the type is already known (eg "High Capacity" when the list is all magazines).
    Required Inventory Item Inventory Item (Optional) If this is set then the character must have an instance of this item (or an item with matching inventory ID) in their inventory before attaching to their weapon.

    See Also

    Modular Firearms

    Modular Firearm Attachments

    Inventory

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