{"name":"ropeAttachTo","title":"ropeAttachTo","type":"command","url":"https://community.bistudio.com/wiki/ropeAttachTo","revid":329674,"updated":"2022-08-01T01:24:20Z","groups":["Ropes and Sling Loading"],"status":"ok","games":{"arma3":"1.34"},"since":"arma3 1.34","arma3_since":"1.34","description":"Attaches entity to the rope end with optional offset. For detach operation use ropeDetach.","syntaxes":[{"syntax":"[entity, toPoint, ropeEndDownVector] ropeAttachTo rope","params":[{"name":"entity","type":"Object","description":"entity to be attached to the end of rope","type_expr":"Object"},{"name":"toPoint","type":"String or Array","optional":true,"description":"position for the rope end, either a memory point String or relative offset Array","type_expr":"String | Array","text":"toPoint: String or Array - (Optional) position for the rope end, either a memory point String or relative offset Array"},{"name":"ropeEndDownVector","type":"String or Array","optional":true,"default":"[0,0,-1]","description":"either a memory point String or relative vector Array. If String is given, then `ropeEndDownVector` is calculated from `toPoint` towards `ropeEndDownVector` memory point","type_expr":"String | Array","text":"ropeEndDownVector: String or Array - (Optional, default [0,0,-1]) either a memory point String or relative vector Array. If String is given, then `ropeEndDownVector` is calculated from `toPoint` towards `ropeEndDownVector` memory point"},{"name":"rope","type":"Object","description":"the rope to which entity will be attached to","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"[entity, toPoint, ropeEndDownVector]"},"right":{"text":"rope"}},{"syntax":"entity ropeAttachTo rope","since":"arma3 2.10","params":[{"name":"entity","type":"Object","description":"entity to be attached to the end of rope","type_expr":"Object"},{"name":"rope","type":"Object","description":"the rope to which entity will be attached to","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"entity"},"right":{"text":"rope"}}],"examples":[{"code":["[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);"]}],"see_also":["ropes","canSlingLoad","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeDestroy","ropeLength","ropeUnwound","ropeAttachedTo","ropeCreate","ropeDetach","ropeAttachEnabled","ropeCut","ropeEndPosition","ropeUnwind","setSlingLoad","slingLoadAssistantShown"]}