Repository navigation
A3D_GetRouteLength
imshooter edited this page Oct 23, 2026
·
1 revision
Length of a route, in metres.
native Float:A3D_GetRouteLength(Route:routeid);| Parameter | Description |
|---|---|
Route:routeid |
Route to measure. |
- The length.
-
0.0when the route does not exist.
The length runs along the paths, from where the start meets them to where the end meets them, with the walks on the navigation mesh at both ends when there are some. It is measured in three dimensions, so a climb counts.
Prices a taxi ride by the length of the road.
stock TaxiFare(Route:routeid) {
return 50 + floatround(A3D_GetRouteLength(routeid) / 100.0) * 5;
}- A3D_GetRouteTime: Time a route takes, in seconds.
- A3D_MeasureRoute: Measure the best route between two points without keeping it, which is faster than finding it.
- A3D_GetRouteProgress: Find where a point is along a route: the distance left, the distance from the route and the next turn.
3DAndreas 0.7.1 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Physics objects
- Model settings
- World queries
- The screen
- Routes
- Navigation mesh
- Map database
- Coming from ColAndreas
- Performance
Reference
Functions