Skip to content

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)

Parameters

Parameter Description
playerid Player who arrived.
Route:routeid Route they followed.

Remarks

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.

Example

public A3D_OnRouteArrived(playerid, Route:routeid) {
    A3D_DestroyRoute(routeid);
    GameTextForPlayer(playerid, "~g~You arrived", 3000, 3);

    return 1;
}

Related

  • 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.

Home

Guides

Reference

Functions

Creating objects
Motion
Placement
Behaviour
Display and data
Rays
Shapes
Players, vehicles and actors
Map probes
Screen
Map objects
Water
Models and surfaces
Rotations and offsets
Vehicles
Routes
Route display
Walking
Callbacks

Clone this wiki locally