Entity.IsOnFire
From GMod Wiki
| Function | |
| Syntax | Entity:IsOnFire( ) |
| Description: | |
| Returns true if the entity is on fire, usually because of Entity:Ignite. | |
| Returns: | Boolean |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.IsOnFire]Entity.IsOnFire [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prevents an entity from catching on fire. |
|---|---|
| Used on | |
| Code | if ( ent:IsOnFire() ) then ent:Extinguish(); end |
| Output | This works on the ignite tool and env_fire. |