ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onFireCreate

Event

onFireCreate

ServerFireTrilogy Hub only

A fire was created (by a script or in the game).

Handler

addEventHandler("onFireCreate", root, function(fireId, x, y, z, size) ... end)

Parameters

fireIdint
Fire number.
x, y, zfloat
Position.
sizefloat
Size.

Source

source is root.

Example

addEventHandler("onFireCreate", root, function(id, x, y, z)
    outputServerLog(("Ogień %d w %.0f, %.0f"):format(id, x, y))
end)

See also