Garry's Mod Wiki

Entity:IsFlagSet

  boolean Entity:IsFlagSet( number flag )

Description

Checks if given flag(s) is set or not.

Arguments

1 number flag
The engine flag(s) to test, see Enums/FL

Returns

1 boolean
Is set or not

Example

Checks if the player is on the ground.

print( Entity( 1 ):IsFlagSet( FL_ONGROUND ))
Output: true