{"name":"waypointAttachObject","title":"waypointAttachObject","type":"command","url":"https://community.bistudio.com/wiki/waypointAttachObject","revid":377746,"updated":"2026-01-03T00:57:58Z","groups":["Waypoints"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","description":"Attaches a static object via its numeric ID to the given waypoint. Not to be confused with synchronizeWaypoint!\n\n> [!IMPORTANT]\n> - The main syntax doesn't work in Arma 3 anymore.\n> - The alternative syntax is (at least) available since Arma 2.","syntaxes":[{"syntax":"waypoint waypointAttachObject objectID","params":[{"name":"waypoint","type":"Waypoint","type_expr":"Waypoint"},{"name":"objectID","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"waypoint"},"right":{"text":"objectID"}},{"syntax":"waypoint waypointAttachObject object","params":[{"name":"waypoint","type":"Waypoint","type_expr":"Waypoint"},{"name":"object","type":"Object","description":"static object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"waypoint"},"right":{"text":"object"}}],"examples":[{"code":["[_grp, 2] waypointAttachObject 1234;"]},{"code":["private _wp = group player addWaypoint [[1907.5, 5746.5, 0.00144196], 0];\n_wp waypointAttachObject ((waypointPosition _wp) nearestObject 66220);"]}],"see_also":["waypointAttachedObject","synchronizeWaypoint"]}