csharp
public sealed class LeashDefinitionHow far a mob may be pulled, and what happens when it is.
Remarks
⚠ Two radii and not one, and this is the reason for the type. A single radius makes a mob standing on the boundary flicker between chasing and resetting once per frame, because the player is moving and the comparison keeps changing sides. The tether is where it starts worrying and the break is where it gives up; nothing happens in between, and coming back inside the tether — not merely inside the break — is what clears it.
Fields and properties (5)
public float TetherHow far it will follow before it starts to give up, in metres.
public float BreakHow far before it does, in metres.
public float PatienceHow long it may spend stretched before it gives up anyway, in seconds. Zero for never.
public LeashBehaviour BehaviourWhat it does then.
public bool HealsOnResetWhether it comes back at full health.
Used by (8)
- LeashVixen.Gameplay.Ai
- LeashTestsVixen.Gameplay.Ai.Tests
- SpawnLibraryVixen.Gameplay.Ai
- SpawnTableVixen.Gameplay.Ai
- SpawnTableDefinitionVixen.Gameplay.Ai
- TypeRegistrationVixen.Gameplay.Ai
- Vixen_Gameplay_Ai_LeashDefinitionSerializerVixen.Gameplay.Ai
- Vixen_Gameplay_Ai_SpawnTableDefinitionSerializerVixen.Gameplay.Ai