Custom images on maps
#5
(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
Reply
Thanks given by:


Messages In This Thread
Custom images on maps - by Mathias - 05-18-2017, 10:27 PM
RE: Custom images on maps - by NiLSPACE - 05-18-2017, 10:38 PM
RE: Custom images on maps - by Seadragon91 - 05-18-2017, 11:06 PM
RE: Custom images on maps - by Seadragon91 - 05-18-2017, 11:32 PM
RE: Custom images on maps - by Mathias - 05-19-2017, 01:03 AM
RE: Custom images on maps - by BillBodkin - 11-21-2019, 08:43 PM



Users browsing this thread: 1 Guest(s)