⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ShieldManager MonoBehaviour

    Overview

    The ShieldManager behaviour is used to track a character's energy shields. Shields completely absorb damage via the ShieldedDamageHandler and ShieldedArmouredDamageHandler, but are depleted in the process. A character's shields are split into steps. The steps automatically recharge if partially depleted after a short delay. If a shield step is completely depleted, then that step is broken and will not recharge. You will need to collect a ShieldPickup to restore broken steps.

    Inspector

    ShieldManager

    Properties

    Name Type Description
    Shield Float The starting shield amount.
    Step Capacity Float The shield capacity of each shield step / block.
    Step Count Integer The number of shield steps / blocks.
    Damage Mitigation Float The amount of damage (multiplier) that the shield negates.
    Charge Rate Float The recharge speed for shield regeneration.
    Charge Delay Float The delay between taking damage and starting shield regen.
    Can Break Step 1 Bolean Shield steps only recharge if the shield value is greater than their starting level. If this property is false, step 1 will always recharge, even if it hits zero.

    See Also

    Health and Damage

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