Class EntityBehaviorTiredness
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Allows entity to rest.
Uses the "tiredness" code Open in GitHub
[DocumentAsJson]
public class EntityBehaviorTiredness : EntityBehavior
- Inheritance
-
EntityBehaviorTiredness
Examples
"behaviors": [
{
"code": "tiredness",
"currenttiredness": 0
},
],
Fields
CurrentTiredness (Optional) (Default: 0)
The entity will have this much tiredness (in in-game hours) upon spawn if this is set in JSON. Otherwise, this is the tiredness of the entity
[DocumentAsJson("Optional", "0", false)]
public float Tiredness { get; set; }