ropes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
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|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.34|Game version=
|1.34


|gr1= Ropes and Sling Loading |GROUP1=
|gr1= Ropes and Sling Loading


|Returns all ropes attached to a ropes owner transport in an [[Array]], otherwise an empty array <tt>[]</tt> is returned. |Description=
|Returns all ropes attached to a ropes owner transport in an [[Array]], otherwise an empty array <tt>[]</tt> is returned.


| [[ropes]] ropesOwner |Syntax=
| [[ropes]] ropesOwner


|p1= ropesOwner: [[Object]] - a transport from which the ropes originate
|p1= ropesOwner: [[Object]] - a transport from which the ropes originate


| [[Array]] - array of the actual rope objects |Return value=
| [[Array]] - array of the actual rope objects


|x1= <code>[[hint]] [[str]] ([[ropes]] [[vehicle]] [[player]]);</code> |Example1=
|x1= <code>[[hint]] [[str]] ([[ropes]] [[vehicle]] [[player]]);</code>


|x2= <code>_rope1 = ([[ropes]] heli1) [[select]] 0;</code> |Example2=
|x2= <code>_rope1 = ([[ropes]] heli1) [[select]] 0;</code>


| [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]] |See also=
| [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]]
}}
}}



Revision as of 12:01, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns all ropes attached to a ropes owner transport in an Array, otherwise an empty array [] is returned.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
ropes ropesOwner
Parameters:
ropesOwner: Object - a transport from which the ropes originate
Return Value:
Array - array of the actual rope objects

Examples

Example 1:
hint str (ropes vehicle player);
Example 2:
_rope1 = (ropes heli1) select 0;

Additional Information

See also:
canSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwindsetSlingLoadslingLoadAssistantShown

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

Notes

Posted on 05 April, 2014
Waffle SS.
The ropes command seems to return each individual sling load rope. ropes will return an empty Array if the sling load ropes are not deployed. Ropes as of A3 1.33 have a cfgVehicles classname of "Rope".