NPC · Core definition
Component Instruction Soft Leash
Component
Component_Instruction_Soft_LeashParameters4
Parameters
| Parameter | Value | Description |
|---|---|---|
LeashDistance | 30 | The range after which an NPC will start to want to return to their spawn point |
LeashMinPlayerDistance | 6 | The minimum distance from the player before the NPC will be willing to give up on the chase |
LeashTimer | [5,5] | How long the NPC must be more than the minimum distance form the player and too far from leash before giving up |
HardLeashDistance | 160 | An absolute maximum from the the leash position the NPC can go before turning back |
Identifiers and data source
| Entity id | Component_Instruction_Soft_Leash |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Components/Steps/Component_Instruction_Soft_Leash.json |
| Component class | Instruction |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.