well depending on what you need for your mini map, will play a factor of how much code is need and if it reads realtime or as a player move along and if it stores the info for your mapping system or it just shows the perimeter of player at a location. ethier way your need a array for it to read from...