ropeCut: 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 | ||
| 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> | | 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> | ||
{{Informative | The rope could only be shortened. If the cut length is greater than current rope length, nothing happens}} | {{Informative | The rope could only be shortened. If the cut length is greater than current rope length, nothing happens}} | ||
| [[ropeCut]] [rope, length] | | [[ropeCut]] [rope, length] | ||
|p1 = rope: [[Object]] - rope object obtained from [[ropeCreate]] | |p1 = rope: [[Object]] - rope object obtained from [[ropeCreate]] | ||
Line 16: | Line 16: | ||
|p2 = length: [[Number]] - length of the rope in meters after the cut | |p2 = length: [[Number]] - length of the rope in meters after the cut | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1 = <code>[[ropeCut]] [<nowiki/>[[ropes]] heli1 [[select]] 0, 5];</code> | |x1 = <code>[[ropeCut]] [<nowiki/>[[ropes]] heli1 [[select]] 0, 5];</code> | ||
| [[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]] | ||
}} | }} | ||
Revision as of 11:01, 18 January 2021
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.
- 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
Additional Information
- See also:
- ropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeEndPositionropeUnwindsetSlingLoadslingLoadAssistantShown
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