Ir para o conteúdo principal
Version: latest - a1.148.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 No description provided
Vectorend_location Required parameter No description provided

Returns

TypeDescription
tablewith 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 No description provided
floatradius Required parameter No description provided

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 No description provided
floatradius Required parameter No description provided

Returns

TypeDescription
VectorThe random point

🚀 Events

This class doesn't have own events.