Repository navigation
A3D_GetRoutePointCount
imshooter edited this page Oct 23, 2026
·
1 revision
Number of points of a route, from its start to its end.
native A3D_GetRoutePointCount(Route:routeid);| Parameter | Description |
|---|---|
Route:routeid |
Route to read. |
- The number of points.
-
0when the route does not exist.
A route has a point at each node of the paths it follows, and one where it starts and ends. On roads the nodes stand about fifteen metres apart, closer in curves, so a route across the map has some hundreds of points.
stock PrintRoute(Route:routeid) {
new
Float:x,
Float:y,
Float:z
;
for (new index, count = A3D_GetRoutePointCount(routeid); index != count; ++index) {
A3D_GetRoutePoint(routeid, index, x, y, z);
printf("%i: %.1f %.1f %.1f", index, x, y, z);
}
}- A3D_GetRoutePoint: Read a point of a route.
- A3D_GetRoutePoints: Copy points of a route into three arrays.
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