ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setExplosionFiresEnabled

Function

setExplosionFiresEnabled

ServerFireTrilogy Hub only

Enables or disables secondary fires after explosions (createExplosion, a vehicle exploding). The fires are the same for all players. Enabled by default.

Syntax

bool setExplosionFiresEnabled(bool state)

Arguments

statebool
true enables, false disables.

Returns

true.

Example

addEventHandler("onResourceStart", resourceRoot, function()
    setExplosionFiresEnabled(false)  -- strefa bez pożarów / no fires zone
end)

See also