Garry's Mod Wiki

Revision Difference

constraint.NoCollide#551815

<function name="NoCollide" parent="constraint" type="libraryfunc"> <description> Creates an no-collide "constraint". Disables collision between two entities. <note>Does not work with players.</note> </description> <realm>Server</realm> <file line="904-L946">lua/includes/modules/constraint.lua</file> <file line="913-L954">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> </args> <rets> <ret name="" type="Entity">Constraint. Will return false if the constraint could not be created.</ret> </rets> </function>