Get the target with the highest hatred||doc135579

September 20, 2022

Format

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

Description

Get the target with the highest current hatred of the AI entity.


Value Returned

type Description
Entity entity


Code Samples

local petControl
local entity = petControl:getMaxHatredEntity()