API:RepairSiegeWeapon
From RoR Wiki
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
