Garry's Mod Wiki

Revision Difference

constraint.FindConstraint#528081

<function name="FindConstraint" parent="constraint" type="libraryfunc"> <description>Returns the first constraint of a specific type directly connected to the entity found</description> <realm>Server</realm> <file line="1582">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. "Weld", "Elastic", "NoCollide")</arg>⤶ <arg name="type" type="string">The type of constraint, case sensitive. List of default constrains is as follows:⤶ * `Weld`⤶ * `Axis`⤶ * `AdvBallsocket`⤶ * `Rope`⤶ * `Elastic`⤶ * `NoCollide`⤶ * `Motor`⤶ * `Pulley`⤶ * `Ballsocket`⤶ * `Winch`⤶ * `Hydraulic`⤶ * `Muscle`⤶ * `Keepupright`⤶ * `Slider`</arg>⤶ </args> <rets> <ret name="" type="table">The constraint table, set with <page>constraint.AddConstraintTable</page></ret> </rets> </function>