{"name":"canSlingLoad","operator":null,"title":"canSlingLoad","type":"command","url":"https://community.bistudio.com/wiki/canSlingLoad","revid":352426,"updated":"2024-02-09T15:26:09Z","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":"Returns true if setSlingLoad is possible.","syntaxes":[{"syntax":"heli canSlingLoad cargo","since":null,"effect":null,"exec":null,"params":[{"name":"heli","type":"Object","optional":false,"default":null,"description":"a helicopter","types":["Object"],"since":null,"text":"heli: Object - a helicopter"},{"name":"cargo","type":"Object","optional":false,"default":null,"description":"an entity","types":["Object"],"since":null,"text":"cargo: Object - an entity"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if setSlingLoad is possible","text":"Boolean - true if setSlingLoad is possible"},"form":"binary","operator":null,"left":{"text":"heli","types":["Object"]},"right":{"text":"cargo","types":["Object"]}},{"syntax":"typeOfHeli canSlingLoad typeOfCargo","since":"arma3 2.12","effect":null,"exec":null,"params":[{"name":"typeOfHeli","type":"String","optional":false,"default":null,"description":"a config type of helicopter","types":["String"],"since":null,"text":"typeOfHeli: String - a config type of helicopter"},{"name":"typeOfCargo","type":"String","optional":false,"default":null,"description":"a config type of cargo (the object of type cargo has to exist in the mission)","types":["String"],"since":null,"text":"typeOfCargo: String - a config type of cargo (the object of type cargo has to exist in the mission)"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if can be sling loaded in principle","text":"Boolean - true if can be sling loaded *in principle*"},"form":"binary","operator":null,"left":{"text":"typeOfHeli","types":["String"]},"right":{"text":"typeOfCargo","types":["String"]}}],"examples":[{"text":"```sqf\n_canSling = veh1 canSlingLoad veh2;\n```","code":["_canSling = veh1 canSlingLoad veh2;"]},{"text":"```sqf\nhint str ((vehicle player) canSlingLoad veh1);\n```","code":["hint str ((vehicle player) canSlingLoad veh1);"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ropes","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeAttachTo","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"]}