Ir para o conteúdo principal
Version: latest - a1.156.0 ⚖️

🚢 Navigation

Creates a reachable path into navigable space.

🗿Static ClassClient Only🧑‍💻API Source

🗿 Static Functions​

ReturnsNameDescription
tableFindPathToLocationFinds a Path given Start and End location
VectorGetRandomPointInNavigableRadiusFinds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin
VectorGetRandomReachablePointInRadiusFinds random, reachable point in navigable space restricted to radius around origin

Moderate

FindPathToLocation​

Finds a Path given Start and End location (only if map has a NavMesh)
local ret = Navigation.FindPathToLocation(start_location, end_location)

Parameters

TypeParameterDefaultDescription
Vectorstart_location Required parameter World start location
Vectorend_location Required parameter World end location

Returns

TypeDescription
tableTable with the path points and whether a path was found with this format

Moderate

GetRandomPointInNavigableRadius​

Finds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin (only if map has a NavMesh)
local ret = Navigation.GetRandomPointInNavigableRadius(origin, radius)

Parameters

TypeParameterDefaultDescription
Vectororigin Required parameter Center of the search
floatradius Required parameter Search radius

Returns

TypeDescription
VectorThe random point

Moderate

GetRandomReachablePointInRadius​

Finds random, reachable point in navigable space restricted to radius around origin (only if map has a NavMesh)
local ret = Navigation.GetRandomReachablePointInRadius(origin, radius)

Parameters

TypeParameterDefaultDescription
Vectororigin Required parameter Center of the search
floatradius Required parameter Search radius

Returns

TypeDescription
VectorThe random point

🚀 Events​

This class doesn't have own events.