ropeAttachTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.34|Game version=
|gr1= Ropes and Sling Loading


|gr1= Ropes and Sling Loading |=GROUP1
|descr= Attaches entity to the rope end with optional offset. For detach operation use [[ropeDetach]].
____________________________________________________________________________________________


| Attaches entity to the rope end with optional offset. For detach operation use [[ropeDetach]].|Description=
|s1= [entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope
____________________________________________________________________________________________


|[entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope |Syntax=
|p1= entity: [[Object]] - entity to be attached to the end of rope


|p1= [entity, toPoint, ropeEndDownVector]: [[Array]] |Parameter1=
|p2= toPoint: [[String]] or [[Array]] - (Optional) position for the rope end, either a memory point [[String]] or relative offset [[Array]]
|p2= entity: [[Object]] - entity to be attached to the end of rope |Parameter2=


|p3= toPoint (Optional): [[String]] or [[Array]] - position for the rope end, either a memory point [[String]] or relative offset [[Array]] |PARAMETER3=
|p3= ropeEndDownVector: [[String]] or [[Array]] - (Optional, default [0,0,-1]) either a memory point [[String]] or relative vector [[Array]]. If [[String]] is given, then {{hl|ropeEndDownVector}} is calculated from {{hl|toPoint}} towards {{hl|ropeEndDownVector}} memory point


|p4= ropeEndDownVector (Optional): [[String]] or [[Array]], either a memory point [[String]] or relative vector [[Array]]. If [[String]] is given, then <tt>ropeEndDownVector</tt> is calculated from <tt>toPoint</tt> towards <tt>ropeEndDownVector</tt> memory point. Default: [0,0,-1]|PARAMETER4=
|p4= rope: [[Object]] - the rope to which entity will be attached to


|p5= rope: [[Object]] - the rope to which entity will be attached to|=
|r1= [[Nothing]]


| [[Nothing]] |Return value=
|s2= entity [[ropeAttachTo]] rope
____________________________________________________________________________________________
|s2since= arma3 2.10


|x1 = <code>[veh1, [0,0,0], [0,0,-1]] [[ropeAttachTo]] ([[ropes]] heli1 [[select]] 0);</code> |Example1=
|p21= entity: [[Object]] - entity to be attached to the end of rope


| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]] |See also=
|p22= rope: [[Object]] - the rope to which entity will be attached to
}}


<h3 style="display:none">Notes</h3>
|r2= [[Nothing]]
<dl class="command_description">


</dl>
|x1= <sqf>[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[ropeUnwind]] [[setSlingLoad]] [[slingLoadAssistantShown]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Command Group: Ropes and Sling Loading]]

Latest revision as of 02:24, 1 August 2022

Hover & click on the images for description

Description

Description:
Attaches entity to the rope end with optional offset. For detach operation use ropeDetach.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
[entity, toPoint, ropeEndDownVector] ropeAttachTo rope
Parameters:
entity: Object - entity to be attached to the end of rope
toPoint: String or Array - (Optional) position for the rope end, either a memory point String or relative offset Array
ropeEndDownVector: String or Array - (Optional, default [0,0,-1]) either a memory point String or relative vector Array. If String is given, then ropeEndDownVector is calculated from toPoint towards ropeEndDownVector memory point
rope: Object - the rope to which entity will be attached to
Return Value:
Nothing

Alternative Syntax

Syntax:
entity ropeAttachTo rope
Parameters:
entity: Object - entity to be attached to the end of rope
rope: Object - the rope to which entity will be attached to
Return Value:
Nothing

Examples

Example 1:
[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);

Additional Information

See also:
ropes canSlingLoad enableRopeAttach getSlingLoad ropeAttachedObjects 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