Skip to content

PlayerCommandState ​

Inherits: ActionState < Resource

PlayerCommandState represents when an entity is executing a player command. It handles movement to a designated location and transitions back when complete.

Description ​

Key features:

  • Handles navigation to command target position
  • Detects when navigation is complete or fails
  • Manages transitions when command is completed or interrupted

Methods ​

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

Method descriptions ​

void enter() ​

Called when entering the player command state

void exit() ​

Called when exiting the player command state

void update( _delta: float ) ​

Called every frame to check navigation status

void start_return_to_inactive() ​

Initiates return to inactive state

void return_all_timer() ​

Timer cleanup