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

18 lines
489 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: RemoveWaypoint(Player, WaypointIndex)
**Description:** Removes the guiding waypoint for the Player. SendWaypoints should also be sent after.
**Parameters:**
`Player`: Spawn The NPC whose waypoint path to modify.
`Name`: String - The name of the waypoint supplied originally when AddWaypoint was called.
**Returns:** None.
**Example:**
```lua
-- Example usage (remove a previously added waypoint)
RemoveWaypoint(Player, "PreviousWaypoint")
SendWaypoints(Player)
```