AiState.isDone
Checks if the AI state is done.
Kind: Function
Environments: Game
Game
aiState:isDone( )
Availability: Server only
Returns true when the state is done, and a string describing the state's current situation.
Can be used to determine if another state is allowed to be started.
Parameters:
| Name | Type | Description |
|---|---|---|
state |
AiState | The state. |
Returns:
| Type | Description |
|---|---|
| boolean string |
Returns true when done, and a string description. |