constraint.Find

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

Contents

Description

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

Arguments

Entity ent1

The first entity to check

Arguments

Entity ent2

The second entity to check

Arguments

string type

The constraint type to look for (eg. "Weld", "Elastic", "NoCollide")

Arguments

number bone1

The bone number for the first entity (0 for monoboned entities)

Arguments

number bone2

The bone number for the second entity

Returns

Entity

constraint
Personal tools
Navigation