Console Command:
enableminimap [x origin] [y origin] [width] [height]
ACS Action Special:
DrawMap([x origin], [y origin], [width], [height], [stay on screen]);
The origin x and y values behave similarly to hudmessage positioning (-1.0 to 1.0 range, or .0, .1, .2 decimals with SetHudSize used). The console command behaves as though the hud size is set to 320x200, while the ACS command respects the SetHudSize() command, and scales the map appropriately when it's used.
If [stay on screen] is 1 then the map toggles between the full map and the minimap, without ever turning the automap off completely. If it's 0, then the minimap is added to the rotation, similarly to how the overlay map currently behaves. This does NOT allow the map to be disabled/turned off completely.
The map above was set up with this ACS code:
Code: Select all
script 1 (void)
{
SetHudSize(320, 200, 1);
DrawMap(318.2, 2.1, 70.0, 70.0, 0);
}
Code: Select all
enableminimap 318.2, 2.1, 70.0, 70.0