Get random points within the territory||doc135586

September 20, 2022

Format

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

Description

Get a random point within the AI territory.


Value Returned

type Description
Vector3 Location

Code Samples

on the entity object servermount script, get a random point within the AI territory

local control = this:getAIControl()
local randomPos = control:randPosInHomeArea()