Difference between revisions of "DestroyWaypoint"

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Destroys an already created waypoint.}} {{FuncSyntax|DestroyWaypoint(waypointid)}} <div class="noprint" style="float:right;">...")
 
(No difference)

Latest revision as of 16:49, 29 November 2019

DestroyWaypoint

Type: Function
Context: Client
Introduced: v1.0

Description

Destroys an already created waypoint.

Syntax

DestroyWaypoint(waypointid)

Example Waypoint2.png

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