ropeAttachTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
m (Some wiki formatting)
Line 10: Line 10:
|s1= [entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope
|s1= [entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope


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


|p3= toPoint (Optional):  [[String]] or [[Array]] - position for the rope end, either a memory point [[String]] or relative offset [[Array]]
|p2= toPoint (Optional):  [[String]] or [[Array]] - position for the rope end, either a memory point [[String]] or relative offset [[Array]]


|p4= ropeEndDownVector (Optional): [[String]] or [[Array]] - 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. Default: [0,0,-1]
|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


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


|r1= [[Nothing]]
|r1= [[Nothing]]

Revision as of 16:07, 24 November 2021

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 (Optional): String or Array - 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

Examples

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

Additional Information

See also:
ropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwindsetSlingLoadslingLoadAssistantShown

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