ropeCut: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " [ [[" to " [<nowiki/>[[")
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma 3 |Game name=
|game1= arma3
|version1= 1.34


| 1.34 |Game version=
|gr1= Ropes and Sling Loading


|gr1= Ropes and Sling Loading |=GROUP1
|descr= Cuts the given rope to the specified length. If some entity was attached to the end of the rope, it will be detached. The rope remains attached to its parent transport and if the length is set to 0 or even negative does not get destroyed. Use [[ropeDestroy]] to remove it completely.{{Feature|informative|The rope could only be shortened. If the cut length is greater than current rope length, nothing happens}}
____________________________________________________________________________________________


| Cuts the given rope to the specified length. If some entity was attached to the end of the rope, it will be detached. The rope remains attached to its parent transport and if the length is set to 0 or even negative does not get destroyed. Use [[ropeDestroy]] to remove it completely.<br><br>
|s1= [[ropeCut]] [rope, length]
{{Informative | The rope could only be shortened. If the cut length is greater than current rope length, nothing happens}} |Description=
____________________________________________________________________________________________


| [[ropeCut]] [rope, length] |Syntax=
|p1= rope: [[Object]] - rope object obtained from [[ropeCreate]]


|p1 = rope: [[Object]] - rope object obtained from [[ropeCreate]]
|p2= length: [[Number]] - length of the rope in meters after the cut


|p2 = length: [[Number]] - length of the rope in meters after the cut
|r1= [[Nothing]]


| [[Nothing]] |Return value=
|x1= <sqf>ropeCut [ropes heli1 select 0, 5];</sqf>
____________________________________________________________________________________________


|x1 = <code>[[ropeCut]] [<nowiki/>[[ropes]] heli1 [[select]] 0, 5];</code> |Example1=
|seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeEndPosition]] [[ropeUnwind]] [[setSlingLoad]] [[slingLoadAssistantShown]]
 
| [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeDestroy]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeCreate]], [[ropeDetach]], [[ropeAttachEnabled]], [[ropeEndPosition]], [[ropeUnwind]], [[setSlingLoad]], [[slingLoadAssistantShown]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:11, 15 March 2024

Hover & click on the images for description

Description

Description:
Cuts the given rope to the specified length. If some entity was attached to the end of the rope, it will be detached. The rope remains attached to its parent transport and if the length is set to 0 or even negative does not get destroyed. Use ropeDestroy to remove it completely.
The rope could only be shortened. If the cut length is greater than current rope length, nothing happens
Groups:
Ropes and Sling Loading

Syntax

Syntax:
ropeCut [rope, length]
Parameters:
rope: Object - rope object obtained from ropeCreate
length: Number - length of the rope in meters after the cut
Return Value:
Nothing

Examples

Example 1:
ropeCut [ropes heli1 select 0, 5];

Additional Information

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