Arma 3 Scripting

Command in Waypoints

waypointAttachObject

Also available as Markdown and JSON, or read the original wiki page.

Description

Attaches a static object via its numeric ID to the given waypoint. Not to be confused with synchronizeWaypoint!

Important

Syntax

Syntax 1

waypoint waypointAttachObject objectID

Parameters:

Returns: Nothing

Syntax 2

waypoint waypointAttachObject object

Parameters:

Returns: Nothing

Examples

Example 1

[_grp, 2] waypointAttachObject 1234;

Example 2

private _wp = group player addWaypoint [[1907.5, 5746.5, 0.00144196], 0];
_wp waypointAttachObject ((waypointPosition _wp) nearestObject 66220);

See also

waypointAttachedObject · synchronizeWaypoint