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

Page Links


Special Pages


Wikis

?

Render Time: 59ms

DB GetPage 25
Generate Html 6
SaveChanges (1) 14
Render Body 0
Render Sidebar 12