waypointAttachObject: Difference between revisions

From Bohemia Interactive Community
(Add synchronizeWaypoint disambiguation)
mNo edit summary
Line 38: Line 38:
|s2= waypoint [[waypointAttachObject]] object
|s2= waypoint [[waypointAttachObject]] object


|p21= waypoint: [[Array]] format [[Waypoint]]
|p21= waypoint: [[Waypoint]]


|p22= object: [[Object]] - static object
|p22= object: [[Object]] - static object

Revision as of 07:56, 2 January 2026

Hover & click on the images for description

Description

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

Syntax

Syntax:
waypoint waypointAttachObject objectID
Parameters:
waypoint: Array - format Waypoint
objectID: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
waypoint waypointAttachObject object
Parameters:
waypoint: Waypoint
object: Object - static object
Return Value:
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);

Additional Information

See also:
waypointAttachedObject synchronizeWaypoint

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note