Unit.createState
Creates a Ai State from a name (See AiState)
Kind: Function
Environments: Game
Game
unit:createState( stateName )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |
stateName |
string | Name of predefined ai state. |
Returns:
| Type | Description |
|---|---|
| AiState | The ai state. |