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

Event

onExplosion

ServerFireIdentical to MTA:SA

An explosion happened (reported by a player's game or from a script).

Handler

addEventHandler("onExplosion", root, function(x, y, z, theType) ... end)

Parameters

x, y, zfloat
Position.
theTypeint
Explosion type 0-12.

Source

source is the explosion's creator or root.

Example

addEventHandler("onExplosion", root, function(x, y, z, kind)
    outputServerLog(("Wybuch typu %d w %.0f, %.0f"):format(kind, x, y))
end)

See also