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: 51ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 37
Render Body 0
Render Sidebar 5