Repository navigation
A3D_DestroyRoute
imshooter edited this page Oct 23, 2026
·
1 revision
Destroy a route, and hide it from the players it is shown to.
native bool:A3D_DestroyRoute(Route:routeid);| Parameter | Description |
|---|---|
Route:routeid |
Route to destroy. |
-
truewhen the route was destroyed. -
falsewhen the route does not exist.
The players the route is shown to stop seeing it, and its id may go to the next route found. A script that keeps the ids of its routes should set them back to INVALID_ROUTE_ID when it destroys them. The routes of a script are destroyed when it unloads.
Forgets the route of a player who leaves.
static Route:gDelivery[MAX_PLAYERS] = { INVALID_ROUTE_ID, ... };
public OnPlayerDisconnect(playerid, reason) {
A3D_DestroyRoute(gDelivery[playerid]);
gDelivery[playerid] = INVALID_ROUTE_ID;
return 1;
}- A3D_FindRoute: Find the best route between two points along the paths of the game.
- A3D_IsValidRoute: Whether a route exists.
- A3D_HideRouteForPlayer: Hide the route shown to a player.
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