Skip to content

InactiveState ​

Inherits: ActionState < Resource

InactiveState represents when an entity is not actively engaged in combat. It handles basic idle behavior and transitions to combat states when needed.

Description ​

Key features:

  • Handles leashing logic (exits combat if target too far)
  • Transitions to combat when target present
  • Default idle state for non-combat entities

Methods ​

voidenter()
voidupdate( _delta: float )
voidexit()

Method descriptions ​

void enter() ​

Called when entering the inactive state

void update( _delta: float ) ​

Called every frame to check for combat transitions

void exit() ​

Called when exiting the inactive state