Total Disabling of the Minimap

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Total Disabling of the Minimap

Post 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?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Total Disabling of the Minimap

Post 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.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: Total Disabling of the Minimap

Post 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?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Total Disabling of the Minimap

Post by Teancum »

Nope
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: Total Disabling of the Minimap

Post 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...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Total Disabling of the Minimap

Post by Teancum »

That only changes from the default. So ShowAllUnitsOnMiniMap(1) shows everyone. ShowAllUnitsOnMiniMap(0) puts it back to normal.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: Total Disabling of the Minimap

Post 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
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Total Disabling of the Minimap

Post 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)
Post Reply