Entity/Extinguish

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
|Parent=Entity
 
|Parent=Entity
 
|Description=Extinguishes the entity if it is on fire.
 
|Description=Extinguishes the entity if it is on fire.
Has no effect if called inside EntityTakeDamage (and the attacker is the flame that's hurting the entity)
+
<br>Has no effect if called inside EntityTakeDamage (and the attacker is the flame that's hurting the entity)
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes

Revision as of 14:08, 9 May 2013

 Entity:Extinguish( )

Description

Extinguishes the entity if it is on fire.
Has no effect if called inside EntityTakeDamage (and the attacker is the flame that's hurting the entity)

Examples

Example

Demonstrates the use of this function.

player.GetAll()[1]:Extinguish()

Output:

Extinguishes the first player if he is on fire.
Personal tools
Navigation