Garry's Mod Wiki

Revision Difference

Entity:IsFlagSet#514663

<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 &lt;page&gt;FL&lt;/page&gt;</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>