Entity.IsOnFire

From GMod Wiki

Revision as of 16:33, 6 January 2011 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:IsOnFire( )
Description:
Returns true if the entity is on fire, usually because of Entity:Ignite.
Returns: Boolean
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.IsOnFire]Entity.IsOnFire [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrevents an entity from catching on fire.
Used onNewerServer.png
Code
if ( ent:IsOnFire() ) then
	ent:Extinguish();
end
OutputThis works on the ignite tool and env_fire.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox