⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    DamageZone MonoBehaviour

    Overview

    The DamageZone behaviour applies damage to a character over time whilst they are inside it. It is used alongside a CharacterTriggerZone, so it should be placed on a GameObject on the TriggerZones layer with a collider with IsTrigger set to true.

    Inspector

    DamageZone

    Properties

    Name Type Description
    Damage Per Second Float The amount of damage to apply to the player character per second.
    Damage Type DamageType The type of damage to apply.
    Damage Description String A description of the damage to use in logs, etc.
    Damage Interval Integer The amount of fixed frames to wait between damage ticks. Spacing out the damage into longer ticks can help with issues caused by very low damage values per tick.

    See Also

    Health and Damage

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