btech.set_tons
Sets a live unit’s tonnage and original weight.
Function
Synopsis
btech.set_tons( unit, tons )
Arguments
number unit- The unit dbref.
number tons- The new tonnage.
Returns
boolean successtrueafter the operation completes without a legacy error.
Notes
This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.