Entity/IsConstraint

From Garry's Mod
Jump to: navigation, search
 Entity:IsConstraint( )

Contents

Description

Returns if entity is constraint or not

Returns

boolean

Is the entity a constraint or not

Examples

Example

Returns true if player 1 is aiming at constraint.

print( player.GetByID(1):GetEyeTrace().Entity:IsConstraint() )

Output:

false
Personal tools
Navigation