Get the target to follow||doc135578

September 20, 2022

Format

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

Description

Get the AI's following target entity.


Value Returned

type Description
Entity entity

Code Samples

local petEntity
local control = petEntity:getAIControl()
local entityFollowing = control:getFollowTarget()