Remove AI state||doc135570

September 20, 2022

Format

 AIControl:delState(name)
  • The class to which the function belongs:AIControl

Description

Delete a state in a state machine.


Parameters

Variable name type Description
name string state name


Code Samples

local control = entity:getAIControl()
control:delState("ai_state_dance")