Garry's Mod Wiki

Entity:IsOnFire

  boolean Entity:IsOnFire()

Description

Returns whether the entity is on fire.

Returns

1 boolean
Whether the entity is on fire or not.

Example

Demonstrates the use of this function.

Output: Outputs 'true' to the console if the player 1 is on fire.