PushSiegeLadder
Knocks a standing siege ladder down.
As a player’s push from its top would: it falls outward from its wall, everyone on it comes down with it - hurt by how high they
were, as they land (OnPlayerSiegeHit) - and it lands on whoever stands in its way. Nobody is credited with the damage.
Refused (the second value says why) unless it stands.
Syntax
Section titled “Syntax”PushSiegeLadder(id)| Parameter | Type | |
|---|---|---|
id |
number | the ladder |
Returns
Section titled “Returns”boolean, string - whether it falls, and why not
Example
Section titled “Example”-- the defenders' bell: every ladder against the walls goes down at oncefor _, id in ipairs(GetSiegeEngines()) do if GetEntityTemplate(id) == "ladder" then PushSiegeLadder(id) endendSee also
Section titled “See also”RaiseSiegeLadder · OnSiegeEngineAction · OnPlayerSiegeHit · the Siege engines group of the index
