Garry's Mod Wiki

Entity:Extinguish

  Entity:Extinguish()

Description

Extinguishes the entity if it is on fire.

Has no effect if called inside GM:EntityTakeDamage (and the attacker is the flame that's hurting the entity)

See also Entity:Ignite.

Example

Demonstrates the use of this function.

Output: Extinguishes the first player if he is on fire.