createRope (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.22
Description
- Description:
- Creates a list of chained physX objects where all neighbors are connected via joint.
Syntax
- Syntax:
- createRope [fromObject, fromPoint, toObject, toPoint, ropeClassName, ropeBeg, ropeEnd, ropeSegments, [swingSpring, twistSpring, damping]]
- Parameters:
- fromObject: Object - Object where to start creating a rope
- fromPoint: String or Vector - 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 where to bind the last segment of the rope
- toPoint: String or Vector - 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)
- ropeClassName: String - Name of class that will be created and that will represent a rope segment
- ropeBeg: String or Vector - Specifies where on the ROPE object will be created joint with the previous segment (either memory point name or vector - similar like in case of fromPoint)
- ropeEnd: String or Vector - Specifies where on the ROPE object will be created joint with the next segment (either memory point name or vector - similar like in case of fromPoint)
- ropeSegments: Number - Number of segments to be created
- Return Value:
- Nothing
Examples
- Example 1:
createRope [B0, "tw", N0, "center", "vbs2_rope_segment", "bottom", "top", 10, [10, 10, 0.5]]
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- destroyRope

