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

🚢 Navigation

Creates a reachable path into navigable space

🗿Static ClassClient Only🧑‍💻API Source

🗿 Static Functions​

FindPathToLocation: tableFinds a Path given Start and End location
GetRandomPointInNavigableRadius: VectorFinds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin
GetRandomReachablePointInRadius: VectorFinds random, reachable point in navigable space restricted to radius around origin

FindPathToLocationModerate​

Finds a Path given Start and End location

It only works if the map has a NavMesh

local ret = Navigation.FindPathToLocation(start_location, end_location)
Parameters
NameTypeDescrição
start_locationVectorWorld start location
end_locationVectorWorld end location
Returns
TypeDescrição
tableTable with the path points and whether a path was found
Table keys
NameTypeDescrição
IsValidbooleanNo description provided
IsPartialbooleanNo description provided
LengthnumberNo description provided
CostnumberNo description provided
PathPointstable of VectorNo description provided

GetRandomPointInNavigableRadiusModerate​

Finds random, point in navigable space restricted to Radius around Origin. Resulting location is not tested for reachability from the Origin

It only works if the map has a NavMesh

local ret = Navigation.GetRandomPointInNavigableRadius(origin, radius)
Parameters
NameTypeDescrição
originVectorCenter of the search
radiusfloatSearch radius
Returns
TypeDescrição
VectorThe random point

GetRandomReachablePointInRadiusModerate​

Finds random, reachable point in navigable space restricted to radius around origin

It only works if the map has a NavMesh

local ret = Navigation.GetRandomReachablePointInRadius(origin, radius)
Parameters
NameTypeDescrição
originVectorCenter of the search
radiusfloatSearch radius
Returns
TypeDescrição
VectorThe random point

🚀 Events​

This class doesn't have own events.