{"name":"ropeAttachTo","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.34"}],"since":{"game":"arma3","name":"Arma 3","version":"1.34"},"arma3_since":"1.34","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Attaches entity to the rope end with optional offset. For detach operation use ropeDetach.","syntaxes":[{"syntax":"[entity, toPoint, ropeEndDownVector] ropeAttachTo rope","since":null,"effect":null,"exec":null,"params":[{"name":"entity","type":"Object","optional":false,"default":null,"description":"entity to be attached to the end of rope","types":["Object"],"since":null,"text":"entity: Object - entity to be attached to the end of rope"},{"name":"toPoint","type":"String or Array","optional":true,"default":null,"description":"position for the rope end, either a memory point String or relative offset Array","types":["String","Array"],"since":null,"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","types":["String","Array"],"since":null,"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","optional":false,"default":null,"description":"the rope to which entity will be attached to","types":["Object"],"since":null,"text":"rope: Object - the rope to which entity will be attached to"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"[entity, toPoint, ropeEndDownVector]","types":["Array"]},"right":{"text":"rope","types":["Object"]}},{"syntax":"entity ropeAttachTo rope","since":"arma3 2.10","effect":null,"exec":null,"params":[{"name":"entity","type":"Object","optional":false,"default":null,"description":"entity to be attached to the end of rope","types":["Object"],"since":null,"text":"entity: Object - entity to be attached to the end of rope"},{"name":"rope","type":"Object","optional":false,"default":null,"description":"the rope to which entity will be attached to","types":["Object"],"since":null,"text":"rope: Object - the rope to which entity will be attached to"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"entity","types":["Object"]},"right":{"text":"rope","types":["Object"]}}],"examples":[{"text":"```sqf\n[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);\n```","code":["[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ropes","canSlingLoad","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeDestroy","ropeLength","ropeUnwound","ropeAttachedTo","ropeCreate","ropeDetach","ropeAttachEnabled","ropeCut","ropeEndPosition","ropeUnwind","setSlingLoad","slingLoadAssistantShown"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Ropes and Sling Loading","Introduced with Arma 3 version 1.34","Scripting Commands"]}