⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    EventDamageHandler MonoBehaviour

    Overview

    The EventDamageHandler behaviour takes damage and passes it to a parent HealthManager as well as invoking a damage event.

    Note

    A damage handler needs to be added to an object with a collider, which uses a layer that the NeoFPS compatible weapons, etc can detect.

    Inspector

    EventDamageHandler

    Properties

    Name Type Description
    Multiplier Float The value to multiply any incoming damage by. Use to reduce damage to areas like feet, or raise it for areas like the head.
    Critical Boolean Does the damage count as critical. Used to change the feedback for the damage taker and dealer.
    On Damage UnityEvent An event that is invoked when damage is taken. The parameters are: float damage, Vector3 direction, bool critical

    See Also

    Health and Damage

    Unity Events

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