constraint.FindConstraints

From GMod Wiki

Revision as of 05:08, 30 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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