⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    DrowningMotionGraphWatcher MonoBehaviour

    Overview

    The DrowningMotionGraphWatcher watches a float parameter on the character motion graph and if the float value exceeds the specified amount then it starts to apply damage to the player's health manager.

    Inspector

    DrowningMotionGraphWatcher

    Properties

    Name Type Description
    Parameter Key String The name of the float parameter on the motion graph that the watcher should track.
    Damage Description String A descriptive name for the damage that can be used in any HUD logs.
    Damage Type Dropdown The damage type the drowning should be classed as. Used for filtering the damage.
    Hold Breath Duration Float The value the parameter needs to reach before damage is applied.
    Damage Spacing Float Damage will be applied every time the parameter passes an increment of this amount above the drown duration.
    Damage Amount Float The amount of damage to apply to the character.

    See Also

    Health and Damage

    Motion Graph Parameters And Data

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