Arma 3 Scripting

waypointAttachObject

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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