constraint.CanConstrain
Description
Basic checks to make sure that the specified entity and bone are valid. Returns false if we should not be constraining the entity.
Arguments
Returns
Example
From modules/constraint.lua
function Weld( Ent1, Ent2, Bone1, Bone2, forcelimit, nocollide, deleteonbreak )
if ( !CanConstrain( Ent1, Bone1 ) ) then return false end
if ( !CanConstrain( Ent2, Bone2 ) ) then return false end