{"name":"setSlingLoad","operator":null,"title":"setSlingLoad","type":"command","url":"https://community.bistudio.com/wiki/setSlingLoad","revid":353299,"updated":"2024-03-15T17:11:43Z","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":"Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass objNull as second param. \n\n> [!NOTE]\n> FROM object has to be a helicoper, alive with rope attachment enabled, TO object has to be an entity, alive with rope attachment enabled.","syntaxes":[{"syntax":"heli setSlingLoad cargo","since":null,"effect":null,"exec":null,"params":[{"name":"heli","type":"Object","optional":false,"default":null,"description":"the helicopter slinging the load","types":["Object"],"since":null,"text":"heli: Object - the helicopter slinging the load"},{"name":"cargo","type":"Object","optional":false,"default":null,"description":"the cargo load entity","types":["Object"],"since":null,"text":"cargo: Object - the cargo load entity"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success","text":"Boolean - true on success"},"form":"binary","operator":null,"left":{"text":"heli","types":["Object"]},"right":{"text":"cargo","types":["Object"]}}],"examples":[{"text":"```sqf\n_success = heli1 setSlingLoad veh1;\n```","code":["_success = heli1 setSlingLoad veh1;"]},{"text":"To unload cargo:\n\n```sqf\n_success = heli setSlingLoad objNull;\n```","code":["_success = heli setSlingLoad objNull;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ropes","canSlingLoad","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeAttachTo","ropeDestroy","ropeLength","ropeUnwound","ropeAttachedTo","ropeCreate","ropeDetach","ropeAttachEnabled","ropeCut","ropeEndPosition","ropeUnwind","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"]}