ropeCreate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fred Gandt (talk | contribs) m (<code> tidy) |
||
Line 34: | Line 34: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>myRope = | |x1 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "slingload0", myCargo, [0, 0, 0], 10];</code> |= Example 1 | ||
|x2 = <code>myRope = | |x2 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "fastrope0", 10, 10, [[true]]<nowiki>]</nowiki>;</code> |= Example 2 | ||
| [[ropeDestroy]], [[ropeDetach]], [[ropeSetCargoMass]] |= See also | | [[ropeDestroy]], | ||
[[ropeDetach]], | |||
[[ropeSetCargoMass]] |= See also | |||
}} | }} |
Revision as of 23:05, 22 March 2014
Description
- Description:
- Create a rope.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ropeCreate [fromObject, fromPoint, toObject, toPoint, segments, (length)]
- Parameters:
- fromObject: Object - object where rope starts and which fly behavior will be affected
- fromPoint: Array or String - specifies where on the object the rope should start, either a string (name of memory point) or an array of three numbers (vector in model coordinates).
- toObject: Object - object which is automatically attached to other side of rope (can be objNull, rope will stay with free end)
- toPoint: Array or String - specifies where on the object the rope should finish, either a string (name of memory point) or an array of three numbers (vector in model coordinates)
- segments: Number - define number of segments to be created
- length (Optional): Number - optional, rope length in meters
- Return Value:
- Object
Alternative Syntax
- Syntax:
- ropeCreate [fromObject, fromPoint, lenght, (segments, unroll)];
- Parameters:
- fromObject: Object - object where rope starts and which fly behavior will be affected
- fromPoint: Array or String - specifies where on the object the rope should start, either a string (name of memory point) or an array of three numbers (vector in model coordinates)
- segments: Number - define number of rope segments
- length (Optional): Number - optional, rope length
- unroll (Optional): Boolean - true if rope starts at one place and falls down unrolling itself, false to create it already in full length (default: false)
- Return Value:
- Object
Examples
- Example 1:
myRope = ropeCreate [vehicle player, "slingload0", myCargo, [0, 0, 0], 10];
- Example 2:
myRope = ropeCreate [vehicle player, "fastrope0", 10, 10, true];
Additional Information
- See also:
- ropeDestroy, ropeDetach, ropeSetCargoMass
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