- Documentation
- Server functions
- setFireSpreadEnabled
Function
setFireSpreadEnabled
Decides whether fire spreads to nearby spots (grass, vehicles next to it). The setting works the same for every player. Fire spreads by default.
Syntax
bool setFireSpreadEnabled(bool state)Arguments
statebooltrue= fire spreads,false= it only burns where it started.
Returns
true on success.
Example
A racing server: an exploding car does not set the whole track on fire.
addEventHandler("onResourceStart", resourceRoot, function()
setFireSpreadEnabled(false)
end)
See also
isFireSpreadEnabledChecks whether fire spreads to nearby spots (setFireSpreadEnabled).createFireStarts a fire. On the server every player sees it, including players who join later, and the function returns the fire's number. On the client the fire burns only in that one game.setExplosionFiresEnabledEnables or disables secondary fires after explosions (createExplosion, a vehicle exploding). The fires are the same for all players. Enabled by default.