NPC · Core definition
Template Animal Neutral
Abstract
Template_Animal_NeutralParameters51
Derived NPCs54
NPCs based on this definition
- Antelope
- Armadillo
- Bison
- Bison Calf
- Boar
- Boar Piglet
- Bunny
- Camel
- Camel Calf
- Chicken
- Chicken Chick
- Chicken Desert
- Chicken Desert Chick
- Cow
- Cow Calf
- Crab
- Deer Doe
- Deer Stag
- Flamingo
- Goat
- Goat Kid
- Hatworm
- Horse
- Horse Foal
- Horse Skeleton
- Horse Skeleton Armored
- Lizard Sand
- Lobster
- Moose Bull
- Moose Cow
- Mosshorn
- Mosshorn Plain
- Mouflon
- Mouflon Lamb
- Penguin
- Pig
- Pig Piglet
- Pig Wild
- Pig Wild Piglet
- Rabbit
- Ram
- Ram Lamb
- Sheep
- Sheep Lamb
- Skrill
- Skrill Chick
- Spark Living
- Tetrabird
- Tortoise
- Trillodon
- Turkey
- Turkey Chick
- Warthog
- Warthog Piglet
Parameters
| Parameter | Value | Description |
|---|---|---|
Appearance | Deer_Stag | The NPC's model. |
ParticleOffset | [0,1,0] | The offset of any spawned particle systems. |
WanderRadius | 7 | The wander radius of the NPC. |
ViewRange | 16 | The view distance of the NPC, in blocks. |
ViewSector | 180 | The view sector of the NPC, in degrees. |
HearingRange | 8 | The hearing distance of the NPC, in blocks. |
AbsoluteDetectionRange | 4 | The range at which a target is guaranteed to be detected, in blocks. If set to zero, absolute detection will be disabled. The interval [ AbsoluteDetectionRange, AlertedActionRange ] defines the distance range within which an NPC can be befriended. |
AlertedRange | 18 | The range within which the target can be seen/sensed when the NPC is alerted to their presence, in blocks. Should be higher than sense ranges. |
AlertedActionRange | 8 | The range at which an NPC will react to other NPCs and players, depending on the attitude towards them, in blocks. Should be higher than AbsoluteDetectionRange to make the NPC befriendable. |
LeashDistance | 20 | The range at which an NPC will start to want to return to their spawn point, in blocks. |
AttractiveItemSet | [] | The list of items that are deemed attractive (there's a chance targets holding them will be followed). |
AttractiveItemSetParticles | Want_Food_Carrot | The particle system that spawns to indicate the NPC's liked item(s). |
WeightFollowItem | 100 | The probability the NPC will follow an attractive item when held by a non-hostile target, in percent. |
FollowItemAlways | true | Whether the NPC will follow an attractive item indefinitely. If set to false, make sure FollowItemTimeout is properly configured. |
FollowItemPreDelay | [1,2] | The time delay before an NPC starts following an item. |
FollowItemTimeout | [20,40] | The duration of the follow item behaviour, after which the NPC will give up on the target. Requires FollowItemAlways to be set to false. |
DropList | Empty | The NPC's drop list. |
FlockArray | [] | The set of NPCs belonging to this flock type |
ClimbHeight | 1 | The maximum climb height, in blocks. |
AttitudeGroup | Prey | The attitude group this NPC belongs to. |
PlayerDefaultAttitude | Neutral | The default attitude towards the player. |
AlertedTimeoutGiveUp | [5,8] | The timeout after which an alerted NPC will give up on the target, in seconds. |
GrazingBlockSet | Grass | The type of block that this NPC will graze on top of. |
FoodBlockSet | Hay | The type of block that this NPC will occasionally seek out to munch on. |
DayTimePeriod | [6.01,17.99] | The hour range considered to be daytime for this NPC (inclusive). Hours should be written with decimal fractions. |
DayTimeNapWeight | 2 | The weight used to determine if the NPC should have a short nap during the day. Set to 0 to disable. |
DayTimeNapTimeRange | [10,12] | The duration range of daytime naps, in seconds. |
DayFlavorAnimation | The flavor animation to play during the day. Ignored if null or empty. | |
IgnoreOverrideTime | 20 | The duration of the ignore attitude override for the target. |
IsTameable | false | Whether this NPC can be tamed. |
TameRequiredAttitudes | ["Friendly","Neutral"] | The attitude groups of players that can tame the NPC. |
TameRoleChange | Tamed_Sheep | The role the NPC will change into when it's tamed. |
ProduceItem | The item this NPC produces (poop, eggs, etc). | |
ProduceTimeout | ["PT6H","PT36H"] | The timeout between consecutive produces. |
DayFlavorAnimationLength | [3,5] | How long the daytime flavor animation will be played for, in seconds. |
Timid | false | Whether this NPC is timid or not. Timid NPCs are harder to approach and befriend. |
AttackWhenStartled | false | Whether this NPC attacks when startled. |
Attack | The attack interaction this NPC will use. | |
AttackRange | 5 | The range at which the NPC can identify an attacker. |
MaxSpeed | 4 | The maximum walking speed of the NPC. |
MaxHealth | 100 | The maximum health of the NPC. |
MaxRotationSpeed | 360 | The maximum rotation speed, in degrees per second. |
RunThreshold | 0.5 | The speed ratio at which the NPC switches to run animation (e.g if MaxSpeed is 10, and RunThreshold is set to 0.55, the NPC will start running at speed 5.5). |
DeathParticles | Effect_Death | The particle system that spawns when the NPC's corpse disappears. |
DropDeathItemsInstantly | false | Whether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears. |
DeathAnimationTime | 2 | The time it takes for this NPC's corpse to disappear. |
IsMemory | false | Whether the NPC is a memory. |
MemoriesCategory | Livestock | The category of the memory. |
MemoriesNameOverride | If set, overrides the memory name. | |
BreathesInWater | false | Whether this NPC can breathe underwater. |
NameTranslationKey | server.npcRoles.Template.name | The translation key for the NPC name display |
Identifiers and data source
| Entity id | Template_Animal_Neutral |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Templates/Template_Animal_Neutral.json |
| Component class | — |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.