⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ReloaderCountdown MonoBehaviour

    Overview

    The ReloaderCountdown behaviour attaches to the firearm's reloader and tracks the magazine size. As it approaches zero then it plays audio in sequence. This can be used to add a warning that the magazine is almost empty, or for stylistic audio such as an M1 Garand's iconic ping on the last round.

    Inspector

    ReloaderCountdown

    Properties

    Name Type Description
    Countdown Audio Countdown Audio Array The audio clips to play as ammo is consumed. First element is for the last round in the magazine, second = penultimate, and so on.
    Extend Sequence Boolean If set, then the last clip will be used for all ammo until the count is within the sequence.

    Countdown Audio Element

    Name Type Description
    Clip AudioClip The audio clip to play.
    Volume Float The volume to play the clip at.

    See Also

    Modular Firearms

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