- Documentation
- Server events
- onExplosion
Event
onExplosion
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)