Part of StarfallEx namespace
๐ External
constraint.rope(index, e1, e2, bone1, bone2, v1, v2, length, addlength, force_lim, width, material, rigid, color)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Creates a rope between two entities
Parameters
| Name | Type | Description |
|---|---|---|
index | number | Index of the rope constraint |
e1 | Entity | The first entity |
e2 | Entity | The second entity |
bone1? | number | Number bone of the first entity. Default 0 |
bone2? | number | Number bone of the second entity. Default 0 |
v1 | Vector | Position on the first entity, in its local space coordinates |
v2 | Vector | Position on the second entity, in its local space coordinates |
length? | number | Length of the created rope. Default 0 |
addlength? | number | Amount to add to the base length of the rope. Default 0 |
force_lim? | number | Amount of force until it breaks, 0 = Unbreakable. Default 0 |
width? | number | Width of the rope. Default 0 |
materialName? | string | Material of the rope |
rigid? | boolean | Whether the rope is rigid. Default false |
color? | Color | The color of the rope. Default white |
Returns
| Type | Description |
|---|---|
Constraint | The constraint entity |
Examples
No examples available.
Used In
No usages found in the codebase.