Game GetResourceScanInfo

Returns resource and location details about a specific scan.

{x,y,z, ownerId, composition[i]={itemTypeId, percent}} = Game.GetResourceScanInfo(scanId)
 * Usage


 * Return Values

x, y, x = number

composition.itemTypeId = number. Item ID of the mineral. Can be used to look up mineral details such as the name.

composition.percent = number. Returns a long decimal. Need to multiply x 100 then round to get a whole percent.

composition.resouce_quality = number. This is the CY value as a whole number.

staked = boolean

ownerId = seems to be a 19 digit number. Probably the player id.

local ScanIds = Game.GetResourceScanIds; -- {1 = <23>} -- for _, m in pairs(ScanIds ) do   logArray(Game.GetResourceScanInfo(m)); end -- { "ownerId" = , "x" = -303.8510437, "z" = 20.33444786, "locked" = false, "composition" = {   1 = {"itemTypeId" = ,"percent" = 0.11213382,"resource_quality" = 533},    2 = {"itemTypeId" = ,"percent" = 0.40407029,"resource_quality" = 0},    3 = {"itemTypeId" = ,"percent" = 0.33342418,"resource_quality" = 409},    4 = {"itemTypeId" = ,"percent" = 0.15037169,"resource_quality" = 543}}, "y" = 434.23580933 } --
 * Examples: