Page 1 of 1
[?]:Dynamic Metal Map
Posted: 31 Oct 2011, 23:34
by REVENGE
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?
Re: [?]:Dynamic Metal Map
Posted: 31 Oct 2011, 23:59
by knorke
REVENGE wrote:Is it possible to alter the metal map while ingame?
nope. lua your own metalmap with some 2d array?
How about metal extractor radii?
Spring.SetUnitMetalExtraction ( number unitID, number depth [,number range] ) -> nil
springrts.com/wiki/Lua_SyncedCtrl
Re: [?]:Dynamic Metal Map
Posted: 01 Nov 2011, 17:30
by knorke
hm, seems to become possible with 0.83:)
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)
Re: [?]:Dynamic Metal Map
Posted: 07 Nov 2011, 22:16
by REVENGE
Sweeeeeeeeet.