1
0
EQ2Emu/docs/lua_functions/AddWaypoint.md
2025-05-28 21:48:33 -04:00

21 lines
767 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: AddWaypoint(Player, Name, X, Y, Z)
**Description:** Adds a guiding waypoint to a Player with the Name for the description at X, Y, Z coordinates. You can add multiple waypoints and then send waypoints. Refer to RemoveWaypoint(Player, Name) to remove an existing waypoint.
**Parameters:**
`Player`: Spawn The Player to which to provide the waypoint.
`Name`: String - The name / description of the waypoint.
`X`: Float The X coordinate of the waypoint.
`Y`: Float The Y coordinate (vertical) of the waypoint.
`Z`: Float The Z coordinate of the waypoint.
**Returns:** None.
**Example:**
```lua
-- Add a waypoint to the client and send the waypoints
AddWaypoint(Player, "Lets go here!", 102.5, -12.3, 230.0)
SendWaypoints(Player)
```