Table of Contents

Class EntityBehaviorReviveOnDeath

Namespace
Vintagestory.GameContent
Assembly
VSEssentials.dll

Revives the entity a period of time after its death.
Uses the "reviveondeath" code Open in GitHub

[DocumentAsJson]
public class EntityBehaviorReviveOnDeath : EntityBehavior
Inheritance
EntityBehaviorReviveOnDeath

Examples

"behaviors": [
 {
    "code": "reviveondeath"
    "minHours": 24,
    "maxHours": 72
 }
]

Fields

maxHours (Optional) (Default: 48)

Maximum in-game hours until the entity is revived

[DocumentAsJson("Optional", "48", false)]
private float maxHours

Field Value

float

minHours (Optional) (Default: 24)

Minimum in-game hours until the entity is revived

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

Field Value

float