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.
Syntax
Section titled “Syntax”SetSiegeEngineShots(id [, shots])| Parameter | Type | |
|---|---|---|
id |
number | the engine |
shots |
number | the shots left; -1 or nil = no limit (optional) |
Returns
Section titled “Returns”boolean - false when it is no engine
Example
Section titled “Example”SetSiegeEngineShots(id, GetSiegeEngineInfo(id).shots + 5) -- a cart of stones arrivedSee also
Section titled “See also”GetSiegeEngineInfo · LoadSiegeEngine · the Siege engines group of the index
