Garry's Mod Wiki

constraint.Find

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

Description

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

Arguments

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

Returns

1 Entity
constraint

Page Links


Special Pages


Wikis

?

Render Time: 181ms

DB GetPage 96
Generate Html 5
SaveChanges (1) 72
Render Body 0
Render Sidebar 5