Skip to content

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.

PushSiegeLadder(id)
Parameter Type
id number the ladder

boolean, string - whether it falls, and why not

-- the defenders' bell: every ladder against the walls goes down at once
for _, id in ipairs(GetSiegeEngines()) do
if GetEntityTemplate(id) == "ladder" then PushSiegeLadder(id) end
end

RaiseSiegeLadder · OnSiegeEngineAction · OnPlayerSiegeHit · the Siege engines group of the index