Garry's Mod Wiki

Garry's Mod Wiki

  Entity:Ignite( number length, number radius = 0 )

Description

Sets the entity on fire.

See also Entity:Extinguish.

Arguments

1 number length
How long to keep the entity ignited, in seconds.
2 number radius = 0
The radius of the ignition, will ignite everything around the entity that is in this radius.

Example

Ignite all props on the map for 30 seconds.

for _, ent in ipairs( ents.FindByClass( "prop_physics" ) ) do ent:Ignite(30) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...