setSlingLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma 3 |= Game name
| arma 3 |Game name=
| 1.34 |= Game version


| 1.34 |Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


|Creates sling loading from first object to second object if possible. To unload cargo, pass [[objNull]] as second param. |= Description
| Create sling loading from first object to second object if possible. To unload cargo, pass [[objNull]] as second param. |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


|vehicle '''setSlingLoad''' cargo|= Syntax
| vehicle [[setSlingLoad]] cargo |Syntax=
|p1 = vehicle: [[Object]]
 
|p2 = cargo: [[Object]]
|p1= vehicle: [[Object]]
| [[Boolean]] |= Return value
 
|p2= cargo: [[Object]]
 
| [[Boolean]] |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>_success = heli1 [[setSlingLoad]] veh1;</code> |= Example1
|x2 = To unload cargo:<code>_success = heli [[setSlingLoad]] [[objNull]];</code>|=Example2


|x1 = <code>_success = heli1 [[setSlingLoad]] veh1;</code> |Example1=


| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[slingLoadAssistantShown]] |= See also
|x2 = To unload cargo:<code>_success = heli [[setSlingLoad]] [[objNull]];</code>|Example2=


| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[slingLoadAssistantShown]] |See also=
}}
}}


Line 30: Line 33:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Ropes and Sling Loading]]


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->

Revision as of 01:16, 30 March 2019

Hover & click on the images for description

Description

Description:
Create sling loading from first object to second object if possible. To unload cargo, pass objNull as second param.
Groups:
Uncategorised

Syntax

Syntax:
vehicle setSlingLoad cargo
Parameters:
vehicle: Object
cargo: Object
Return Value:
Boolean

Examples

Example 1:
_success = heli1 setSlingLoad veh1;
Example 2:
To unload cargo:_success = heli setSlingLoad objNull;

Additional Information

See also:
ropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwindslingLoadAssistantShown

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

Notes

Bottom Section

Posted on November 8, 2014 - 14:42 (UTC)
Tajin
"... if possible "
FYI, that only means that 'vehicle' has to be able to lift 'cargo'. The position/distance does not matter, 'cargo' is automatically moved to a position that is close enough but doesn't doesn't collide with 'vehicle'. (can also be used if 'vehicle' is not flying, in which case 'cargo' will be placed and attached on the ground next to it).