⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    CustomRevolverReloader MonoBehaviour

    Overview

    The CustomRevolverReloader module is adpated from the SimpleReloader. It adds functionality to make the spent and reloaded rounds visible and the visbile count correct based on how many bullets are loaded into the gun.

    Inspector

    CustomRevolverReloader

    Properties

    The CustomRevolverReloader module inherits most of its properties from the SimpleReloader. It adds the following properties:

    Name Type Description
    Start Active Boolean Should this module register as the active reloader immediately on start.
    Activation Mode Dropdown How does module activation work. Options are: Component means the component will be enabled / disabled - use this when you have multiple modules on an object such as the firearm root. GameObject activates / deactivates the object - use this for attachments where you want the geo to appear/disappear.
    Magazine Size Float The number of rounds that can be fit in the magazine at once.
    Starting Magazine Float The number of rounds in the magazine on initialisation.
    Empty Shells GameObject Array The empty shells in the revolver cylinder.
    Loader Shells GameObject Array The unused shells in the revolver speed loader.

    See Also

    Modular Firearms

    [Unity Animator][unity-animator]

    [Unity AnimatorController][unity-animatorcontroller]

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