constraint.FindConstraintEntity

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

Contents

Description

Returns the other entity involved in the first constraint of a specific type directly connected to the entity

Arguments

Entity ent

The entity to check

Arguments

string type

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

Returns

Entity

The other entity.
Personal tools
Navigation