DestroyWaypoint

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
DestroyWaypoint

Type: Function
Context: Client
Introduced: v1.0

Description

Destroys an already created waypoint.

Syntax

DestroyWaypoint(waypointid)

Parameters

  • waypointId
    The waypoint identifier.

Return Value

  • Returns the waypoint identifier.

Example

function OnKeyPress(k)
	if k == "L" then
		DestroyWaypoint(waypointId)
	end
end
AddEvent("OnKeyPress", OnKeyPress)

See also