⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    IncrementalReloader MonoBehaviour

    Overview

    The IncrementalReloader module is a more complex reloader that increments the ammo count bit by bit. It will increment for each bullet required and can be interrupted. It is used by the demo shotgun.

    Inspector

    IncrementalReloader

    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.
    Rounds Per Increment Integer The number of rounds to load into the gun each increment.
    Start Includes Reload Boolean If true, then the reload count animation sent to the animator controller will be 1 lower to prevent playing an extra animation loop.
    Use External Triggers Boolean If true, requires an external trigger such as a script or animation event to increment and complete the reload. If false, uses a timer.
    Reload Start Duration* Float The duration of the reload start animation.
    Reload Increment Duration* Float The duration of a single increment of the reload.
    Reload End Duration* Float The duration of the reload end.
    Reload Anim Trigger String The AnimatorController trigger key for the reload animation.
    Reload Anim Count Prop String The AnimatorController propery key for the reload count.
    Reload Speed Parameter String A float parameter in the weapon AnimatorController that will be assigned the reload speed (use for animation clip playback speed setting on reload animations).
    Reload Audio Start AudioClip The audio clip to play when the reload starts.
    Reload Audio Increment AudioClip The audio clip to play during an increment of the reload.
    Reload Audio End AudioClip The audio clip to play when the reload ends.
    * This property is not visible unless the Use External Triggers property is set to False.

    See Also

    Modular Firearms

    FirearmAnimEventsHandler

    Unity Animator

    Unity AnimatorController

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