Skip to content

AI APIΒΆ

AI API responsible for controlling entities AI, toggling it and perform checks if it is enabled or disabled.

Function Returns Description
toggleAI(direction?: Direction) Result Tries to toggle AI of entity in specific direction
isAIEnabled(direction?: Direction) boolean? Returns true if entity AI is enable, false if not and nil if there is no entity