Revision Difference
constraint.Ballsocket#551798
<function name="Ballsocket" parent="constraint" type="libraryfunc">
<description>Creates a ballsocket joint.</description>
<realm>Server</realm>
<file line="1203-L1250">lua/includes/modules/constraint.lua</file>
<file line="1214-L1258">lua/includes/modules/constraint.lua</file>
<args>
<arg name="Ent1" type="Entity">First entity</arg>
<arg name="Ent2" type="Entity">Second entity</arg>
<arg name="Bone1" type="number">Bone of first entity (0 for non-ragdolls)</arg>
<arg name="Bone2" type="number">Bone of second entity (0 for non-ragdolls)</arg>
<arg name="LocalPos" type="Vector">Centerposition of the joint, relative to the **second** entity.</arg>
<arg name="forcelimit" type="number">Amount of force until it breaks (0 = unbreakable)</arg>
<arg name="torquelimit" type="number">Amount of torque (rotation speed) until it breaks (0 = unbreakable)</arg>
<arg name="nocollide" type="number">Whether the entities should be nocollided</arg>
</args>
<rets>
<ret name="" type="Entity">Constraint. Will return false if the constraint could not be created.</ret>
</rets>
</function>