setSlingLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


| 1.34 |Game version=
| 1.34


|gr1= Ropes and Sling Loading |GROUP1=
|gr1= Ropes and Sling Loading


| Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass [[objNull]] as second param. <br><br>
| Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass [[objNull]] as second param. <br><br>
{{Informative | FROM object has to be a helicoper, alive with [[enableRopeAttach | rope attachment]] enabled, TO object has to be an entity, alive with [[enableRopeAttach | rope attachment]] enabled.}}|Description=
{{Informative | FROM object has to be a helicoper, alive with [[enableRopeAttach | rope attachment]] enabled, TO object has to be an entity, alive with [[enableRopeAttach | rope attachment]] enabled.}}


| heli [[setSlingLoad]] cargo |Syntax=
| heli [[setSlingLoad]] cargo


|p1= heli: [[Object]] - the helicopter slinging the load
|p1= heli: [[Object]] - the helicopter slinging the load
Line 16: Line 16:
|p2= cargo: [[Object]] - the cargo load entity
|p2= cargo: [[Object]] - the cargo load entity


| [[Boolean]] - [[true]] on success |Return value=
| [[Boolean]] - [[true]] on success


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


|x2 = To unload cargo:<code>_success = heli [[setSlingLoad]] [[objNull]];</code>|Example2=
|x2 = To unload cargo:<code>_success = heli [[setSlingLoad]] [[objNull]];</code>


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



Revision as of 12:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass objNull as second param.

FROM object has to be a helicoper, alive with rope attachment enabled, TO object has to be an entity, alive with rope attachment enabled.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
heli setSlingLoad cargo
Parameters:
heli: Object - the helicopter slinging the load
cargo: Object - the cargo load entity
Return Value:
Boolean - true on success

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


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).