Module MetalMap

Metal Map Lua API


See also:

Functions

Spring.SetMetalAmount

Functions

Spring.SetMetalAmount(x, z, metalAmount)

Parameters:

  1. x number in worldspace/16.
  2. z number in worldspace/16.
  3. metalAmount number must be between 0 and 255*maxMetal (with maxMetal from the .smd or mapinfo.lua).

Returns:

  1. nil