Entity.Ignite
From GMod Wiki
| Function | |
| Syntax | Entity:Ignite( float duration, float radius ) |
| Description: | |
| Causes the entity to burst into flames. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.Ignite]Entity.Ignite [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sets the entity on fire for a given time. |
|---|---|
| Used on | |
| Code | local igniteForSeconds = 10 ent:Ignite(igniteForSeconds,0) |
| Output | N/A |
Additional Notes
- Duration is the time in seconds the fire should last.
- Radius is the distance in game units that another entity must be from this entity to catch fire.