Total Disabling of the Minimap
Moderator: Moderators
- willinator
- Major

- Posts: 517
- Joined: Sun Mar 13, 2011 3:11 pm
- Projects :: [Coming of the Sentinels]
- xbox live or psn: PC pwns all!
- Location: The rings of Saturn...
Total Disabling of the Minimap
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?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Total Disabling of the Minimap
Looking through the list of lua functions here, there is the DisableSmallMapMiniMap function. Try using DisableSmallMapMiniMap(1) for off, and DisableSmallMapMiniMap(0) for on.
- willinator
- Major

- Posts: 517
- Joined: Sun Mar 13, 2011 3:11 pm
- Projects :: [Coming of the Sentinels]
- xbox live or psn: PC pwns all!
- Location: The rings of Saturn...
Re: Total Disabling of the Minimap
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?
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
nobody3
- Rebel Sergeant

- Posts: 188
- Joined: Wed Jun 15, 2011 8:30 am
Re: Total Disabling of the Minimap
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...
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...
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Total Disabling of the Minimap
That only changes from the default. So ShowAllUnitsOnMiniMap(1) shows everyone. ShowAllUnitsOnMiniMap(0) puts it back to normal.
-
nobody3
- Rebel Sergeant

- Posts: 188
- Joined: Wed Jun 15, 2011 8:30 am
Re: Total Disabling of the Minimap
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
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Total Disabling of the Minimap
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:
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)