setSlingLoad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}") |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.34 | |||
| 1.34 | |||
|gr1= Ropes and Sling Loading | |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. | |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.}} | ||
{{ | |||
| heli [[setSlingLoad]] cargo | |s1= heli [[setSlingLoad]] cargo | ||
|p1= heli: [[Object]] - the helicopter slinging the load | |p1= heli: [[Object]] - the helicopter slinging the load | ||
Line 16: | Line 14: | ||
|p2= cargo: [[Object]] - the cargo load entity | |p2= cargo: [[Object]] - the cargo load entity | ||
| [[Boolean]] - [[true]] on success | |r1= [[Boolean]] - [[true]] on success | ||
|x1 = < | |x1= <sqf>_success = heli1 setSlingLoad veh1;</sqf> | ||
|x2 = To unload cargo:< | |x2= To unload cargo: | ||
<sqf>_success = heli setSlingLoad objNull;</sqf> | |||
| [[ropes]] | |seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[ropeUnwind]] [[slingLoadAssistantShown]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
< | <dt></dt> | ||
<dd class="notedate">Posted on 2014-11-08 - 14:42 (UTC)</dd> | |||
< | |||
<dd class="notedate">Posted on | |||
<dt class="note">[[User:Tajin|Tajin]]</dt> | <dt class="note">[[User:Tajin|Tajin]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
Line 40: | 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> | ||
Latest revision as of 18:11, 15 March 2024
Description
- Description:
- Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass objNull as second param.
- 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:
- Example 2:
- To unload cargo:
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).