• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Lua] Mouse pos minimap tile color return

GhostWD

I'm in love with the var_dump()
Joined
Jan 25, 2009
Messages
185
Solutions
6
Reaction score
29
Hi, I'm fighting with getting color of minimap tile which is clicked by mouse could someone help me with that? I'm completely lost and i dont know how to use getColor on that ;/ or idk return bool if its in Fog Of War or not
Thanks!!
 
Last edited:
Bump? I can get tile pos but not it color on minimap... anyone?
 
C++:
uint8 Minimap::getTileColor(const Position& pos)
{
    MinimapBlock& block = getBlock(pos);
    MinimapTile& tile = block.getTile(pos.x, pos.y);


    return tile.color;
}

function to get tile color from pos self:getTileColor(self:getTilePosition(pos))
 
Last edited:
Back
Top