Page 1 of 1
Total Disabling of the Minimap
Posted: Wed Nov 20, 2013 11:16 pm
by willinator
Hey guys, long time no see. Anyways, I've been working on a campaign map recently, and I'd like to know if there's a way to completely disable the minimap for a player (can't access it at all), and then give access back to them later in the campaign if they pick up a map. Is there any way to do this?
Re: Total Disabling of the Minimap
Posted: Thu Nov 21, 2013 12:00 am
by AQT
Looking through the list of lua functions
here, there is the
DisableSmallMapMiniMap function. Try using
DisableSmallMapMiniMap(1) for off, and
DisableSmallMapMiniMap(0) for on.
Re: Total Disabling of the Minimap
Posted: Thu Nov 21, 2013 7:45 pm
by willinator
So that will disable the small minimap in the corner, which is good. Is there any way to make the map not appear when the player hits "m", and then grant that ability later?
Re: Total Disabling of the Minimap
Posted: Fri Nov 22, 2013 7:10 am
by Teancum
Nope
Re: Total Disabling of the Minimap
Posted: Sun Nov 24, 2013 8:20 pm
by nobody3
I saw somewhere this command "ShowAllUnitsOnMinimap" I guess that should disable all the players on both the map and minimap
but I tried it before and I couldnt make it work... try searching this forum because I did before and they asked the same question as you...
Re: Total Disabling of the Minimap
Posted: Sun Nov 24, 2013 9:15 pm
by Teancum
That only changes from the default. So ShowAllUnitsOnMiniMap(1) shows everyone. ShowAllUnitsOnMiniMap(0) puts it back to normal.
Re: Total Disabling of the Minimap
Posted: Mon Nov 25, 2013 6:00 am
by nobody3
yes I forgot to mention to add the "(0)" but i tried it before and im pretty sure it didnt work... Its not in any .lua file to my knowledge(I think its only in .exe) and it might be when youre in singleplayer mode you can see all units of your team on the map (regardless how far are they from you) correct me if im wrong
Re: Total Disabling of the Minimap
Posted: Sat Nov 30, 2013 6:58 pm
by AQT
There might be a way to cover up the minimap on the M key screen by simply hiding it under an incredibly large MapTexture, the icon an object uses to represent itself on the minimap.
Try placing a destructible object at the center of your map/mapbounds region. Then increase the MapScale parameter in its ODF to the point where when viewing the minimap, the MapTexture takes up the whole thing.
To turn it "off," just use:
Code: Select all
SetProperty("object_name", "IsVisible", 0)