ropeAttachTo: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.34 | |1.34 | ||
|gr1= Ropes and Sling Loading | |gr1= Ropes and Sling Loading | ||
| 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]]. | ||
|[entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope | |[entity, toPoint, ropeEndDownVector] [[ropeAttachTo]] rope | ||
|p1= [entity, toPoint, ropeEndDownVector]: [[Array]] | |p1= [entity, toPoint, ropeEndDownVector]: [[Array]] | ||
|p2= 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]] | |p3= 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 <tt>ropeEndDownVector</tt> is calculated from <tt>toPoint</tt> towards <tt>ropeEndDownVector</tt> memory point. Default: [0,0,-1] | |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] | ||
|p5= rope: [[Object]] - the rope to which entity will be attached to | |p5= rope: [[Object]] - the rope to which entity will be attached to | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1 = <code>[veh1, [0,0,0], [0,0,-1]] [[ropeAttachTo]] ([[ropes]] heli1 [[select]] 0);</code> | |x1 = <code>[veh1, [0,0,0], [0,0,-1]] [[ropeAttachTo]] ([[ropes]] heli1 [[select]] 0);</code> | ||
| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]] | | [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]] | ||
}} | }} | ||
Revision as of 11:04, 18 January 2021
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, toPoint, ropeEndDownVector]: Array
- 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 (Optional): String or Array, either a memory point String or relative vector Array. If String is given, then ropeEndDownVector is calculated from toPoint towards ropeEndDownVector memory point. Default: [0,0,-1]
- 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