Garry's Mod Wiki


  Entity constraint.Find( Entity ent1, Entity ent2, string type, number bone1, number bone2 )


Returns the constraint of a specified type between two entities, if it exists


1 Entity ent1
The first entity to check
2 Entity ent2
The second entity to check
3 string type
The type of constraint, case sensitive. List of default constrains is as follows:
  • Weld
  • Axis
  • AdvBallsocket
  • Rope
  • Elastic
  • NoCollide
  • Motor
  • Pulley
  • Ballsocket
  • Winch
  • Hydraulic
  • Muscle
  • Keepupright
  • Slider
4 number bone1
The bone number for the first entity (0 for monoboned entities)
5 number bone2
The bone number for the second entity


1 Entity