constraint.FindConstraints

From GMod Wiki

Jump to: navigation, search
Function
Syntax constraint.FindConstraints( Entity , String type )
Where is this used?
Description:
Returns the table with information about the constraints on an entity with the specific name.
Returns: Table
Part of Library: constraint
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Constraint.FindConstraints]Constraint.FindConstraints [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionFinds all Hydraulic constraints on an entity.
Used onNewerServer.png
Code
local constrs = constraint.FindConstraints( trace.Entity, "Hydraulic" )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox