{"name":"canSlingLoad","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","games":{"arma3":"1.34"},"since":"arma3 1.34","arma3_since":"1.34","description":"Returns true if setSlingLoad is possible.","syntaxes":[{"syntax":"heli canSlingLoad cargo","params":[{"name":"heli","type":"Object","description":"a helicopter","type_expr":"Object"},{"name":"cargo","type":"Object","description":"an entity","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if setSlingLoad is possible"},"form":"binary","left":{"text":"heli"},"right":{"text":"cargo"}},{"syntax":"typeOfHeli canSlingLoad typeOfCargo","since":"arma3 2.12","params":[{"name":"typeOfHeli","type":"String","description":"a config type of helicopter","type_expr":"String"},{"name":"typeOfCargo","type":"String","description":"a config type of cargo (the object of type cargo has to exist in the mission)","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if can be sling loaded in principle","text":"Boolean - true if can be sling loaded *in principle*"},"form":"binary","left":{"text":"typeOfHeli"},"right":{"text":"typeOfCargo"}}],"examples":[{"code":["_canSling = veh1 canSlingLoad veh2;"]},{"code":["hint str ((vehicle player) canSlingLoad veh1);"]}],"see_also":["ropes","enableRopeAttach","getSlingLoad","ropeAttachedObjects","ropeAttachTo","ropeDestroy","ropeLength","ropeUnwound","ropeAttachedTo","ropeCreate","ropeDetach","ropeAttachEnabled","ropeCut","ropeEndPosition","ropeUnwind","setSlingLoad","slingLoadAssistantShown"]}