LoadSiegeEngine
Loads a siege engine, as its operator’s R would.
A trebuchet winds its arm down first (35 s), then takes its stone (6 s); a cannon takes its powder and ball (10 s). Nobody needs to work it. It is refused - the second value says why, in the words a player would read - while it is busy, loaded already, wrecked, or out of shots.
Syntax
Section titled “Syntax”LoadSiegeEngine(id)| Parameter | Type | |
|---|---|---|
id |
number | the engine |
Returns
Section titled “Returns”boolean, string - whether it loads, and why not
Example
Section titled “Example”local ok, why = LoadSiegeEngine(id)if not ok then Log("the engine does not load: " .. why) endSee also
Section titled “See also”FireSiegeEngine · SetSiegeEngineShots · SetSiegeEngineRules · the Siege engines group of the index
