ropeCreate TKOH: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (ToH specific) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''ropeCreate''' [fromObject, fromPoint, toObject, toPoint, segments, length] |Syntax= | ||
|p1=[fromObject, fromPoint, toObject, toPoint, segments, length]: [[Array]]|Parameter 1= | |p1=[fromObject, fromPoint, toObject, toPoint, segments, length]: [[Array]]|Parameter 1= | ||
Line 27: | Line 27: | ||
| [[Object]] |Return value= | | [[Object]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= | |s2= '''ropeCreate''' [fromObject, fromPoint, length, segments, unroll] |Syntax 2= | ||
|p21= [fromObject, fromPoint, lenght, segments, unroll]: [[Array]] |Parameter 21= | |p21= [fromObject, fromPoint, lenght, segments, unroll]: [[Array]] |Parameter 21= | ||
Line 39: | Line 39: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "slingload0", myCargo, [0, 0, 0], 10]; {{codecomment|// A3 example}}</code> |Example 1= | |x1 = <code>myRope = [[ropeCreate_ToH |ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "slingload0", myCargo, [0, 0, 0], 10]; {{codecomment|// A3 example}}</code> |Example 1= | ||
|x2 = <code>myRope = [[ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "fastrope0", 10, 10, [[true]]<nowiki>]</nowiki>; {{codecomment|// TKOH example}}</code> |Example 2= | |x2 = <code>myRope = [[ropeCreate_ToH |ropeCreate]] <nowiki>[</nowiki>[[vehicle]] [[player]], "fastrope0", 10, 10, [[true]]<nowiki>]</nowiki>; {{codecomment|// TKOH example}}</code> |Example 2= | ||
|x3 = <code>myRope = [[ropeCreate]] [veh1, [0,0,-2], veh2, [0,0,0], 10] {{codecomment|// A3 1.34}}</code> |Example 3= | |x3 = <code>myRope = [[ropeCreate_ToH |ropeCreate]] [veh1, [0,0,-2], veh2, [0,0,0], 10] {{codecomment|// A3 1.34}}</code> |Example 3= | ||
| [[ropeDestroy]], [[ropeDetach]], [[ropeSetCargoMass]], [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]] |See also= | | [[ropeDestroy]], [[ropeDetach]], [[ropeSetCargoMass]], [[ropes]], [[canSlingLoad]], [[enableRopeAttach]], [[getSlingLoad]], [[ropeAttachedObjects]], [[ropeAttachTo]], [[ropeLength]], [[ropeUnwound]], [[ropeAttachedTo]], [[ropeAttachEnabled]], [[ropeCut]], [[ropeEndPosition]], [[ropeUnwind]] |See also= |
Revision as of 16:24, 1 September 2019
Description
- Description:
- Create a rope.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ropeCreate [fromObject, fromPoint, toObject, toPoint, segments, length]
- Parameters:
- [fromObject, fromPoint, toObject, toPoint, segments, length]: Array
- 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 (not used in A3)
- length (Optional): Number - optional, rope length in meters
- Return Value:
- Object
Alternative Syntax
- Syntax:
- ropeCreate [fromObject, fromPoint, length, segments, unroll]
- Parameters:
- [fromObject, fromPoint, lenght, segments, unroll]: Array
- 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)
- length (Optional): Number - rope length
- segments (Optional): Number - define number of rope segments (not used in A3)
- 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) (not used in A3)
- Return Value:
- Object
Examples
- Example 1:
myRope = ropeCreate [vehicle player, "slingload0", myCargo, [0, 0, 0], 10]; // A3 example
- Example 2:
myRope = ropeCreate [vehicle player, "fastrope0", 10, 10, true]; // TKOH example
- Example 3:
myRope = ropeCreate [veh1, [0,0,-2], veh2, [0,0,0], 10] // A3 1.34
Additional Information
- See also:
- ropeDestroyropeDetachropeSetCargoMassropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeLengthropeUnwoundropeAttachedToropeAttachEnabledropeCutropeEndPositionropeUnwind
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Take On Helicopters version 1.00
- Take On Helicopters: New Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands Take On Helicopters
- Take On Helicopters: New Scripting Commands List
- Command Group: Ropes and Sling Loading