Garry's Mod Wiki

Revision Difference

constraint.FindConstraints#514436

<function name="FindConstraints" parent="constraint" type="libraryfunc">⤶ <description>Returns a table of all constraints of a specific type directly connected to the entity</description>⤶ <realm>Server</realm>⤶ <file line="1561">lua/includes/modules/constraint.lua</file>⤶ <args>⤶ <arg name="ent" type="Entity">The entity to check</arg>⤶ <arg name="type" type="string">The type of constraint (eg. &quot;Weld&quot;, &quot;Elastic&quot;, &quot;NoCollide&quot;)</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">All the constraints of this entity.</ret>⤶ </rets>⤶ </function>⤶ ⤶