Skip to main content
Version: latest - a1.147.x โš–๏ธ

๐Ÿšข Navigation

Creates a reachable path into navigable space.

๐Ÿ—ฟStatic Class
This is a Static Class. Access it's methods directly with .. It's not possible to spawn new instances.
๐Ÿ’‚Authority
This static class can be accessed only on ๐ŸŸง Client side.
๐Ÿง‘โ€๐Ÿ’ปAPI Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!

๐Ÿ—ฟย 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

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

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

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.