I vaugely remember this topic had come up before, but I couldn't find it using the forum search or looking in the wiki.
Is it possible to alter the metal map while ingame? How about metal extractor radii?
[?]:Dynamic Metal Map
Moderator: Moderators
Re: [?]:Dynamic Metal Map
nope. lua your own metalmap with some 2d array?REVENGE wrote:Is it possible to alter the metal map while ingame?
Spring.SetUnitMetalExtraction ( number unitID, number depth [,number range] ) -> nilHow about metal extractor radii?
springrts.com/wiki/Lua_SyncedCtrl
Re: [?]:Dynamic Metal Map
hm, seems to become possible with 0.83:)
from changelog:
from changelog:
- added Spring.{Get, Set}MapSquareTexture (these allow complete dynamic run-time retexturing of SMF maps)
- added Spring.GetMetalMapSize (returns size in metal map coordinates)
- added Spring.GetMetalExtraction (note: uses metal map coordinates)
- added Spring.{Get, Set}MetalAmount (note: uses metal map coordinates)