SetUnitMetalExtraction()

SetUnitMetalExtraction()

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

SetUnitMetalExtraction()

Post by trepan »

Decimator
Spring.SetUnitMetalExtraction(unitID, depth[, range]) has been committed.
It's an expensive call, because it recomputes the metal extraction for the unit
that is being changed, and for its neighbours. If you plan on using it to update
a number of units, then I suggest you try to stagger the calls.
Post Reply

Return to “Lua Scripts”