Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:RepairSiegeWeapon

From RoR Wiki
Revision as of 19:48, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · RvR functions
Version: WAR 1.4.8

Asks the server to repair the client's active siege weapon.

RepairSiegeWeapon()

Arguments

None.

Returns

Nothing.

Details

  • The request is an interaction with the active siege weapon's world object. Nothing is sent if the client has no active siege weapon object number, or if the network connection is not ready.
  • The client does not check whether the weapon is damaged or whether the player can repair it; the server decides.
  • Arguments are not read.

Errors

None.

Example

From default/ea_siegeweaponwindow/source/siegeweaponcontrolwindow.lua:

function SiegeWeaponControlWindow.RepairWeapon()
    if( ButtonGetDisabledFlag( SystemData.ActiveWindow.name ) ) then
        return
    end

    RepairSiegeWeapon()
end

See also