Entity:IsConstraint
Description
Returns if entity is constraint or not.
This also means that Entity:GetConstrainedPhysObjects. Entity:GetConstrainedEntities and Entity:SetPhysConstraintObjects can be used on this entity.
For some constraint entities, such as
phys_spring, phys_slideconstraint, phys_torque and logic_collision_pair, this function will return false!Returns
Example
Returns true if player 1 is aiming at constraint.
Output: false
Garry's Mod
Rust
Steamworks
Wiki Help