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 constraint type to look for (eg. "Weld", "Elastic", "NoCollide")
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: 36ms

Session 0
DB GetPage 2
Generate Html 10
SaveChanges 11
Render Body 0
Render Sidebar 11