setSlingLoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(51 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma 3 |= Game name
|game1= arma3
| 1.34 |= Game version
|version1= 1.34


____________________________________________________________________________________________
|gr1= Ropes and Sling Loading


|Creates sling loading from first object to second object if possible. To unload cargo, pass [[objNull]] as second param. |= Description
|descr= Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass [[objNull]] as second param. {{Feature|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.}}
____________________________________________________________________________________________


|vehicle '''setSlingLoad''' cargo|= Syntax
|s1= heli [[setSlingLoad]] cargo
|p1 = vehicle: [[Object]]
|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


|p1= heli: [[Object]] - the helicopter slinging the load


| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[slingLoadAssistantShown]] |= See also
|p2= cargo: [[Object]] - the cargo load entity


}}
|r1= [[Boolean]] - [[true]] on success
 
|x1= <sqf>_success = heli1 setSlingLoad veh1;</sqf>


<h3 style="display:none">Notes</h3>
|x2= To unload cargo:
<dl class="command_description">
<sqf>_success = heli setSlingLoad objNull;</sqf>


</dl>
|seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[ropeUnwind]] [[slingLoadAssistantShown]]
}}


<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on November 8, 2014 - 14:42 (UTC)</dd>
 
<dt></dt>
<dd class="notedate">Posted on 2014-11-08 - 14:42 (UTC)</dd>
<dt class="note">[[User:Tajin|Tajin]]</dt>
<dt class="note">[[User:Tajin|Tajin]]</dt>
<dd class="note">
<dd class="note">
Line 39: Line 34:
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).
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).
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 19:11, 15 March 2024

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:
ropes canSlingLoad enableRopeAttach getSlingLoad ropeAttachedObjects ropeAttachTo ropeDestroy ropeLength ropeUnwound ropeAttachedTo ropeCreate ropeDetach ropeAttachEnabled ropeCut ropeEndPosition ropeUnwind 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


Posted on 2014-11-08 - 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).