Vixen
c7401864
csharp
public sealed class LeashDefinition

How far a mob may be pulled, and what happens when it is.

Read the guide page for this →

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 Tether

    How far it will follow before it starts to give up, in metres.

  • public float Break

    How far before it does, in metres.

  • public float Patience

    How long it may spend stretched before it gives up anyway, in seconds. Zero for never.

  • public LeashBehaviour Behaviour

    What it does then.

  • public bool HealsOnReset

    Whether 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