Entity.Extinguish
From GMod Wiki
Function | |
Syntax | Entity:Extinguish( ) |
Description: | |
If the entity has been ignited, extinguishes it. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.Extinguish]Entity.Extinguish [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Extinguishes an entity if it's on fire. |
---|---|
Used on | |
Code | if ( self:IsOnFire() ) then self:Extinguish() end |
Output | N/A |
Additional Notes
- Sometimes when extinguishing a player you might have to extinguish their active weapon too.