Garry's Mod Wiki

Revision Difference

Entity:IsValidLayer#514668

<function name="IsValidLayer" parent="Entity" type="classfunc">⤶ <description>⤶ Returns whether the given layer ID is valid and exists on this entity.⤶ ⤶ <note>This function only works on <page>BaseAnimatingOverlay</page> entites!</note>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="layerID" type="number">The Layer ID</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Whether the given layer ID is valid and exists on this entity.</ret>⤶ </rets>⤶ </function>⤶ ⤶