Skip to content

OnSiegeShot

A siege engine’s shot left it - the sling let go, the fuse burned down.

function OnSiegeShot(id, shooter, shot)
-- ...
end
Parameter Type
id number the engine
shooter number the player who fired it; -1 = the mode (FireSiegeEngine with nobody at it)
shot number the engine’s shot number (counts from 1)

nothing

function OnSiegeShot(id, shooter, shot)
local info = GetSiegeEngineInfo(id)
Log(string.format("%s %d fired shot %d (%d left)", info.kind, id, shot, info.shots))
end

OnSiegeImpact · FireSiegeEngine · the Siege engines group of the index