Entity:IsFlagSet

From Garry's Mod
Jump to: navigation, search
 Entity:IsFlagSet( )

Contents

Description

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

Arguments

number flag

The engine flag(s) to test, see FL_ Enums

Returns

boolean

Is set or not

Examples

Example

Checks if the player is on the ground.

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

Output:

true
Personal tools
Navigation