Enable entity AI||doc135560

September 20, 2022

Format

 Entity:startAI() 
  • The class to which the function belongs:Entity

Description

Turn on the entity's AI. If the Enable Unit AI option is checked in the editor, this function will be called by default when the entity is spawned.


Code Samples

on the entity object servermount script, turn on the AI of the entity

this:startAI()