Table of Contents

Class EntityBehaviorMortallyWoundable

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Allows entity to enter mortally wounded state upon depleting a set portion of its health. Makes creature immobile and unable to regenerate health. Can be recovered when healed by a player.
Uses the "mortallywoundable" code Open in GitHub

[DocumentAsJson]
public class EntityBehaviorMortallyWoundable : EntityBehavior
Inheritance
EntityBehaviorMortallyWoundable

Examples

"behaviors": [
 {
     "code": "mortallywoundable",
     "whenBelowHealth": 6
 },
],

Fields

healingRequiredForRescue (Optional) (Default: 15)

How many health points the creature should have to exit mortally wounded state

[DocumentAsJson("Optional", "15", false)]
private float healingRequiredForRescue

Field Value

float

remainAliveHours (Optional) (Default: 24)

How long the creature can stay in mortally wounded state before it dies

[DocumentAsJson("Optional", "24", false)]
private float remainAliveHours

Field Value

float

RemainingHealth (Optional) (Default: 10)

How many health points are left upon entering mortally wounded state before creature actually dies. Currently unused

[DocumentAsJson("Optional", "10", false)]
private float damageRequiredForFullDeath

Field Value

float

whenBelowHealth (Optional) (Default: 5)

Below how many health points the creature should enter mortally wounded state

[DocumentAsJson("Optional", "5", false)]
private float whenBelowHealth

Field Value

float