constraint.Rope
From GMod Wiki
| Function | |
| Syntax |
constraint.Rope( Entity Ent1, Entity Ent2, Number Bone1, Number Bone2, Vector LPos1, Vector LPos2, Number length, Number addlength, Number forcelimit, Number width, String material, Boolean rigid ) Where is this used? |
| Description: | |
| Creates a rope constraint. | |
| Returns: | Entity constraint, Entity rope |
| Part of Library: | Constraint |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Constraint.Rope]Constraint.Rope [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The first return value is false if either of the two entities cannot be constrained.
- An entity cannot be constrained if it's an invalid world brush or if the rope is being attached to an invalid physics object
- If the first value is named constraint but is not local it will overwrite the actual constraint object, causing all constraint creation or removal to stop working
- The first return value will be a keyframe_rope if you roping to the same bone on the same entity.