Class EntityBehaviorBodyTemperature
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Makes entity gradually receive frost damage when outside temperature is below its body temperature.
Uses the "bodytemperature" code Open in GitHub
[DocumentAsJson]
[AddDocumentationProperty("rainProtectionPerc", "Use this on a collectible type. Between 0 and 1, how much should the item protect from the rain if it is worn on the head slot?", "System.Single", "Optional", "0", true)]
public class EntityBehaviorBodyTemperature : EntityBehavior
- Inheritance
-
EntityBehaviorBodyTemperature
Examples
"behaviors": [
{
"code": "bodytemperature",
"defaultBodyTemperature": 37
}
]
Fields
DefaultBodyTemperature (Optional) (Default: 37)
The normal body temperature of the entity, in degrees Celsius
[DocumentAsJson("Optional", "37", false)]
public float NormalBodyTemperature
Field Value
Properties
rainProtectionPerc (Optional) (Default: 0)
Use this on a collectible type. Between 0 and 1, how much should the item protect from the rain if it is worn on the head slot?