Entity.Extinguish

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:Extinguish( )
Description:
If the entity has been ignited, extinguishes it.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.Extinguish]Entity.Extinguish [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionExtinguishes an entity if it's on fire.
Used onNewerServer.png
Code
if ( self:IsOnFire() ) then
   self:Extinguish()
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox