(05-18-2017, 11:32 PM)Seadragon91 Wrote: @Mathias Does it work for you setting the pixel and you see it then?
It seems like maps are not generated unless right-clicking an empty map. I can then modify the pixels, but the custom pixels are overwritten if you don't change the map scale.
This code works after the map has been generated by right-clicking an empty map:
Code:
    Player:GetWorld():GetMapManager():DoWithMap(0,
    function(Map)
        Map:SetPosition(99999999, 99999999)
        Map:SetScale(10)
        for x = 0, 128 do
            for y = 0, 128 do
                Map:SetPixel(x, y, cMap.E_BASE_COLOR_BLUE)
            end
        end
    end)
    return true
 

 
