OnSiegeShot
A siege engine’s shot left it - the sling let go, the fuse burned down.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”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))endSee also
Section titled “See also”OnSiegeImpact · FireSiegeEngine · the Siege engines group of the index
