Revision Difference
Entity:IsFlagSet#518936
<function name="IsFlagSet" parent="Entity" type="classfunc">
<description>Checks if given flag(s) is set or not.</description>
<realm>Shared</realm>
<args>
<arg name="flag" type="number">The engine flag(s) to test, see <page>FL</page></arg>⤶
<arg name="flag" type="number">The engine flag(s) to test, see <page>Enums/FL</page></arg>⤶
</args>
<rets>
<ret name="" type="boolean">Is set or not</ret>
</rets>
</function>
<example>
<description>Checks if the player is on the ground.</description>
<code>print( Entity( 1 ):IsFlagSet( FL_ONGROUND ))</code>
<outputfixedwidth>Fixed width</outputfixedwidth>
<output>true</output>
</example>