⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ArmouredDamageHandler MonoBehaviour

    Overview

    The ArmouredDamageHandler behaviour adds an armour system to the BasicDamageHandler. Armour will mitigate some or all of the damage received by the damage handler, but it is consumed in the process. Armour is an inventory item that is picked up in the scene.

    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

    ArmouredDamageHandler

    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.
    Inventory Key FpsInventoryKey The inventory key of the armour type.
    Damage Mitigation Float The amount of damage the armour should nullify.
    Armour Damage Multiplier Float A multiplier used to modify how much armour is destroyed by the incoming damage.

    See Also

    Health and Damage

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