canSlingLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 18: Line 18:
|x1= <code>_canSling = veh1 canSlingLoad veh2;</code>
|x1= <code>_canSling = veh1 canSlingLoad veh2;</code>


|x2= <code>hint str ((vehicle [[player]]) [[canSlingLoad]] veh1);</code>
|x2= <code>hint str ((vehicle player) [[canSlingLoad]] veh1);</code>


|seealso= [[ropes]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[ropeUnwind]] [[setSlingLoad]] [[slingLoadAssistantShown]]
|seealso= [[ropes]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[ropeUnwind]] [[setSlingLoad]] [[slingLoadAssistantShown]]
}}
}}

Revision as of 12:03, 12 May 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

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