ropesAttachedTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|branch= dev
|version1= 2.10
|version1= 2.10


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


|descr=Returns the owners of all ropes attached to the cargo - the transports to which other entities are attached with [[ropes]]. This command returns [[Array]] of [[Object]]s instead of a single [[Object]] as with [[ropeAttachedTo]].
|descr=Returns the owners of all ropes attached to the cargo - the transports to which other entities are attached with [[ropes]].


|s1= [[ropesAttachedTo]] cargo
|s1= [[ropesAttachedTo]] cargo
Line 13: Line 12:
|p1= cargo: [[Object]] - entity attached to the ends of the ropes
|p1= cargo: [[Object]] - entity attached to the ends of the ropes


|r1= [[Array]] - of [[Object]]s which are transports from which the ropes originate, the ropes owners
|r1= [[Array]] of [[Object]]s which are transports from which the ropes originate, the ropes owners


|x1= <code>r1 = [[ropeCreate]] [car1, [0,0,0], car3, [0,0,0], 10];  
|x1= <sqf>
r2 = [[ropeCreate]] [car2, [0,0,0], car3, [0,0,0], 10];
r1 = ropeCreate [car1, [0,0,0], car3, [0,0,0], 10];
[[ropesAttachedTo]] car3; //[car1,car2]</code>
r2 = ropeCreate [car2, [0,0,0], car3, [0,0,0], 10];
ropesAttachedTo car3; // [car1,car2]
</sqf>


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

Latest revision as of 00:39, 12 February 2024

Hover & click on the images for description

Description

Description:
Returns the owners of all ropes attached to the cargo - the transports to which other entities are attached with ropes.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
ropesAttachedTo cargo
Parameters:
cargo: Object - entity attached to the ends of the ropes
Return Value:
Array of Objects which are transports from which the ropes originate, the ropes owners

Examples

Example 1:
r1 = ropeCreate [car1, [0,0,0], car3, [0,0,0], 10]; r2 = ropeCreate [car2, [0,0,0], car3, [0,0,0], 10]; ropesAttachedTo car3; // [car1,car2]

Additional Information

See also:
ropeAttachedTo ropes canSlingLoad enableRopeAttach getSlingLoad ropeAttachedObjects ropeAttachTo ropeDestroy ropeLength ropeUnwound 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