canSlingLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
No edit summary
Line 15: Line 15:


|r1= [[Boolean]] - [[true]] if [[setSlingLoad]] is possible
|r1= [[Boolean]] - [[true]] if [[setSlingLoad]] is possible
|s2=typeOfHeli [[canSlingLoad]] typeOfCargo
|s2since= Arma3 2.12
|p21= typeOfHeli: [[String]] - a config type of helicopter
|p22= typeOfCargo: [[String]] - a config type of cargo
|r2= [[Boolean]] - [[true]] if can be sling loaded ''in principal''


|x1= <sqf>_canSling = veh1 canSlingLoad veh2;</sqf>
|x1= <sqf>_canSling = veh1 canSlingLoad veh2;</sqf>

Revision as of 15:48, 30 December 2022

Hover & click on the images for description

Description

Description:
Returns true if setSlingLoad is possible.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
heli canSlingLoad cargo
Parameters:
heli: Object - a helicopter
cargo: Object - an entity
Return Value:
Boolean - true if setSlingLoad is possible

Alternative Syntax

Syntax:
typeOfHeli canSlingLoad typeOfCargo
Parameters:
typeOfHeli: String - a config type of helicopter
typeOfCargo: String - a config type of cargo
Return Value:
Boolean - true if can be sling loaded in principal

Examples

Example 1:
_canSling = veh1 canSlingLoad veh2;
Example 2:
hint str ((vehicle player) canSlingLoad veh1);

Additional Information

See also:
ropes enableRopeAttach getSlingLoad ropeAttachedObjects ropeAttachTo ropeDestroy ropeLength ropeUnwound ropeAttachedTo ropeCreate ropeDetach ropeAttachEnabled ropeCut ropeEndPosition ropeUnwind setSlingLoad slingLoadAssistantShown

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note