Skip to content

SetSiegeEngineShots

Limits the shots a siege engine has left.

Each shot that leaves it takes one; at 0 it loads no more (its operator reads “No stones left.” / “No balls left.”). -1 (the default) = no limit. A pile of stones counts the stones on it (9 when full, never more than its capacity) - a lift takes one, a stone put back or come back after its refillSeconds adds one.

SetSiegeEngineShots(id [, shots])
Parameter Type
id number the engine
shots number the shots left; -1 or nil = no limit (optional)

boolean - false when it is no engine

SetSiegeEngineShots(id, GetSiegeEngineInfo(id).shots + 5) -- a cart of stones arrived

GetSiegeEngineInfo · LoadSiegeEngine · the Siege engines group of the index