ropeCut: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Ropes and Sling Loading |GROUP1= | |gr1= Ropes and Sling Loading |GROUP1= | ||
| 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}} |Description= | {{Informative | The rope could only be shortened. If the cut length is greater than current rope length, nothing happens}} |Description= | ||
| [[ropeCut]] [rope, length] |Syntax= | | [[ropeCut]] [rope, length] |Syntax= | ||
Line 20: | Line 17: | ||
| [[Nothing]] |Return value= | | [[Nothing]] |Return value= | ||
|x1 = <code>[[ropeCut]] [<nowiki/>[[ropes]] heli1 [[select]] 0, 5];</code> |Example1= | |x1 = <code>[[ropeCut]] [<nowiki/>[[ropes]] heli1 [[select]] 0, 5];</code> |Example1= |
Revision as of 02:18, 17 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