ropeUnwind: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) (Add local argument/global effect courtesy of Omon XR (on Discord)) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.34 | |version1= 1.34 | ||
|arg= local | |||
|eff= global | |||
|gr1= Ropes and Sling Loading | |gr1= Ropes and Sling Loading | ||
|descr= Increases or decreases the rope length by the given amount. Use relative parameter for changing rope length +/- from current length. | |descr= Increases or decreases the rope length by the given amount. Use relative parameter for changing rope length +/- from current length. | ||
{{Feature|informative|Rope length can be in range 0.5..100 metres.}} | |||
|s1= [[ropeUnwind]] [rope, speed, length, relative] | |s1= [[ropeUnwind]] [rope, speed, length, relative] | ||
Line 12: | Line 16: | ||
|p1= rope: [[Object]] - rope object | |p1= rope: [[Object]] - rope object | ||
|p2= speed: [[Number]] - animation speed in m/s with which to lengthen or shorten the rope | |p2= speed: [[Number]] - animation speed in m/s with which to lengthen or shorten the rope, in range 0.01..20 | ||
|p3= length: [[Number]] - the amount of length change in meters | |p3= length: [[Number]] - the amount of length change in meters, in range: 0.1..100 | ||
|p4= relative | |p4= relative: [[Boolean]] - (Optional) [[true]] will add or subtract given length from current rope length, [[false]] will resize the rope to the given length | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>ropeUnwind [ropes heli1 select 0, 3, 10]; // set rope length to 10m at 3m/s</sqf> | ||
|x2= < | |x2= <sqf>ropeUnwind [ropes heli1 select 0, 3, -5, true]; // decrease rope length by 5m at 3m/s</sqf> | ||
|seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] | |seealso= [[ropes]] [[canSlingLoad]] [[enableRopeAttach]] [[getSlingLoad]] [[ropeAttachedObjects]] [[ropeAttachTo]] [[ropeDestroy]] [[ropeLength]] [[ropeUnwound]] [[ropeAttachedTo]] [[ropeCreate]] [[ropeDetach]] [[ropeAttachEnabled]] [[ropeCut]] [[ropeEndPosition]] [[setSlingLoad]] [[slingLoadAssistantShown]] | ||
}} | }} | ||
{{Note | |||
|user= Tajin | |||
|timestamp= 20141108152800 | |||
|text= Unwinding speed is not linear but instead automatically accelerates at the beginning and slows down at the end.<br> | |||
Unwinding speed is not linear but instead automatically accelerates at the beginning and slows down at the end.<br> | |||
The speed also only seems to have no effect when pulling the rope in. (unless the end of the rope is not attached to anything)<br> | The speed also only seems to have no effect when pulling the rope in. (unless the end of the rope is not attached to anything)<br> | ||
High unwinding speeds (over ~250) can cause your cargo to get stuck in midair. | High unwinding speeds (over ~250) can cause your cargo to get stuck in midair. | ||
}} | |||
Latest revision as of 19:49, 14 April 2024
Description
- Description:
- Increases or decreases the rope length by the given amount. Use relative parameter for changing rope length +/- from current length.
- Groups:
- Ropes and Sling Loading
Syntax
- Syntax:
- ropeUnwind [rope, speed, length, relative]
- Parameters:
- rope: Object - rope object
- speed: Number - animation speed in m/s with which to lengthen or shorten the rope, in range 0.01..20
- length: Number - the amount of length change in meters, in range: 0.1..100
- relative: Boolean - (Optional) true will add or subtract given length from current rope length, false will resize the rope to the given length
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- ropes canSlingLoad enableRopeAttach getSlingLoad ropeAttachedObjects ropeAttachTo ropeDestroy ropeLength ropeUnwound ropeAttachedTo ropeCreate ropeDetach ropeAttachEnabled ropeCut ropeEndPosition 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
- Posted on Nov 08, 2014 - 15:28 (UTC)
-
Unwinding speed is not linear but instead automatically accelerates at the beginning and slows down at the end.
The speed also only seems to have no effect when pulling the rope in. (unless the end of the rope is not attached to anything)
High unwinding speeds (over ~250) can cause your cargo to get stuck in midair.