Revision Difference
Entity:IsConstraint#563157
<function name="IsConstraint" parent="Entity" type="classfunc">
<description>Returns if entity is constraint or not</description>⤶
<description>Returns if entity is constraint or not.⤶
⤶
This also means that <page>Entity:GetConstrainedPhysObjects</page>. <page>Entity:GetConstrainedEntities</page> and <page>Entity:SetPhysConstraintObjects</page> can be used on this entity.⤶
⤶
<warning>Some constraint entities, such as `phys_spring`, will return false!</warning>⤶
</description>⤶
<realm>Server</realm>
<rets>
<ret name="" type="boolean">Is the entity a constraint or not</ret>
</rets>
</function>
<example>
<description>Returns true if player 1 is aiming at constraint.</description>
<code>print( Entity(1):GetEyeTrace().Entity:IsConstraint() )</code>
<output>false</output>
</example>