Forgot to make a post about this earlier.
If you are lazy and use these functions, you can add the following lines to your gadgetHandler (or specific gadgets) to keep your Lua working in both current Spring and next Spring:
Code: Select all
if (not Spring.GetUnitCOBValue) then
Spring.GetUnitCOBValue = Spring.UnitScript.GetUnitCOBValue
Spring.SetUnitCOBValue = Spring.UnitScript.SetUnitCOBValue
end