Show / Hide Table of Contents

Class PassiveDamageComponent

Passively damages the entity on a specified interval.

Inheritance
System.Object
PassiveDamageComponent
Namespace: Content.Shared.Damage.Components
Assembly: Content.Shared.dll
Syntax
public sealed class PassiveDamageComponent : Component

Fields

| Improve this Doc View Source

AllowedStates

The entitys' states that passive damage will apply in

Declaration
public List<MobState> AllowedStates
Field Value
Type Description
List<MobState>
| Improve this Doc View Source

Damage

Damage / Healing per interval dealt to the entity every interval

Declaration
public DamageSpecifier Damage
Field Value
Type Description
DamageSpecifier
| Improve this Doc View Source

DamageCap

The maximum HP the damage will be given to. If 0, disabled.

Declaration
public FixedPoint2 DamageCap
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

Interval

Delay between damage events in seconds

Declaration
public float Interval
Field Value
Type Description
System.Single
| Improve this Doc View Source

NextDamage

Declaration
public TimeSpan NextDamage
Field Value
Type Description
TimeSpan
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾