ropes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added command documentation based on ingame documentation and experimentation)
 
(Added command references in examples)
Line 15: Line 15:
| [[Array]] of rope objects|= Return value
| [[Array]] of rope objects|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>hint str ('''ropes''' vehicle player);</code> |= Example1
|x1 = <code>[[hint]] [[str]] ('''ropes''' [[vehicle]] [[player]]);</code> |= Example1


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





Revision as of 01:34, 13 October 2014

Hover & click on the images for description

Description

Description:
Returns a vehicle's rope objects in an Array.
Groups:
Uncategorised

Syntax

Syntax:
ropes vehicle
Parameters:
vehicle: Object
Return Value:
Array of rope objects

Examples

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

Additional Information

See also:
ropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwind

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".

Bottom Section