constraint.FindConstraint

From Garry's Mod
Jump to: navigation, search
 constraint.FindConstraint( )

Contents

Description

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

Arguments

Entity ent

The entity to check

Arguments

string type

The type of constraint (eg. "Weld", "Elastic", "NoCollide")

Returns

table

The constraint table, set with constraint.AddConstraintTable
Personal tools
Navigation