Get the shortest attack distance||doc135582

September 20, 2022

Format

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

Description

Get the shortest distance in the AI attack skill list.


Value Returned

type Description
float distance

Code Samples

on the entity object servermount script, get the shortest distance in the AI attack skill list

local control = this:getAIControl()
local minAttackRange = control:getMinSkillAttackDis()