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 SourceAllowedStates
The entitys' states that passive damage will apply in
Declaration
public List<MobState> AllowedStates
Field Value
Type | Description |
---|---|
List<MobState> |
Damage
Damage / Healing per interval dealt to the entity every interval
Declaration
public DamageSpecifier Damage
Field Value
Type | Description |
---|---|
DamageSpecifier |
DamageCap
The maximum HP the damage will be given to. If 0, disabled.
Declaration
public FixedPoint2 DamageCap
Field Value
Type | Description |
---|---|
FixedPoint2 |
Interval
Delay between damage events in seconds
Declaration
public float Interval
Field Value
Type | Description |
---|---|
System.Single |
NextDamage
Declaration
public TimeSpan NextDamage
Field Value
Type | Description |
---|---|
TimeSpan |