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