Repository navigation
A3D_OnRouteArrived
imshooter edited this page Oct 23, 2026
·
2 revisions
A player reached the end of the route shown to them. The route stays on the map until it is hidden or destroyed.
public A3D_OnRouteArrived(playerid, Route:routeid)| Parameter | Description |
|---|---|
playerid |
Player who arrived. |
Route:routeid |
Route they followed. |
A player has arrived when the end of the route is less than 15 metres ahead of them along it and they are within 30 metres of the route. The callback comes once each time the route is shown, in the script that found the route, and its return value is not used. The route stays on the map until a script hides or destroys it.
public A3D_OnRouteArrived(playerid, Route:routeid) {
A3D_DestroyRoute(routeid);
GameTextForPlayer(playerid, "~g~You arrived", 3000, 3);
return 1;
}- A3D_ShowRouteForPlayer: Show a route on the radar and the map of a player as a line, which moves on as they go.
- A3D_OnRouteLeft: A player strayed from the route shown to them.
- 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