Entity/IsOnFire

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

Contents

Description

Returns whether the entity is on fire.

Returns

boolean

Whether the entity is on fire or not.

Examples

Example

Demonstrates the use of this function.

print( Entity(1):IsOnFire() )

Output:

Outputs 'true' to the console if the player 1 is on fire.
Personal tools
Navigation