Garry's Mod Wiki

Garry's Mod Wiki

  table constraint.FindConstraint( Entity ent, string type )

Description

Returns the first constraint of a specific type directly connected to the entity found.

Arguments

1 Entity ent
The entity to check.
2 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

Returns

1 table
The constraint table, set with constraint.AddConstraintTable

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...