{"name":"ropeCut","operator":null,"title":"ropeCut","type":"command","url":"https://community.bistudio.com/wiki/ropeCut","revid":353360,"updated":"2024-03-15T17:11:55Z","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":"Cuts the given rope to the specified length. If some entity was attached to the end of the rope, it will be detached. The rope remains attached to its parent transport and if the length is set to 0 or even negative does not get destroyed. Use ropeDestroy to remove it completely.\n\n> [!NOTE]\n> The rope could only be shortened. If the cut length is greater than current rope length, nothing happens","syntaxes":[{"syntax":"ropeCut [rope, length]","since":null,"effect":null,"exec":null,"params":[{"name":"rope","type":"Object","optional":false,"default":null,"description":"rope object obtained from ropeCreate","types":["Object"],"since":null,"text":"rope: Object - rope object obtained from ropeCreate"},{"name":"length","type":"Number","optional":false,"default":null,"description":"length of the rope in meters after the cut","types":["Number"],"since":null,"text":"length: Number - length of the rope in meters after the cut"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[rope, length]","types":["Array"]}}],"examples":[{"text":"```sqf\nropeCut [ropes heli1 select 0, 5];\n```","code":["ropeCut [ropes heli1 select 0, 5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ropes","canSlingLoad","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeAttachTo","ropeDestroy","ropeLength","ropeUnwound","ropeAttachedTo","ropeCreate","ropeDetach","ropeAttachEnabled","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"]}