Garry's Mod Wiki

Revision Difference

Entity:Ignite#515554

<function name="Ignite" parent="Entity" type="classfunc">⤶ <description>⤶ Sets the entity on fire.⤶ ⤶ See also <page>Entity:Extinguish</page>.⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="length" type="number">How long to keep the entity ignited. Not supplying this argument will not ignite the entity at all.</arg>⤶ <arg name="radius" type="number" default="0">The radius of the ignition, will ignite everything around the entity that is in this radius.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Ignite all props on the map for 30 seconds.</description>⤶ <code>⤶ for k, v in pairs(ents.FindByClass("prop_physics")) do⤶ v:Ignite(30)⤶ end⤶ </code>⤶ ⤶ </example>