Unit.createState

Creates a Ai State from a name (See AiState)

Kind: Function

Environments: Game

Game

unit:createState( stateName )

Open the full Game reference

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.