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 ​
void | enter() |
void | update( _delta: float ) |
void | exit() |
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