Personal tools

Lua/Client/Roads

From JC2-MP Documentation

< Lua‎ | Client
Jump to: navigation, search

Description

Roads is a global client-side class for road pathfinding.

Example code is available at https://github.com/trixnz/jc2mp-0.3-examples/tree/master/road-nav

Functions

Returns Prototype
number FindRoadPath(Vector3, Vector3, callback)
table GetRoadById(string)
table GetEdgeByPosition(Vector3, number)
table GetConnectedEdges(number)