Set enemy units display in map/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
KolSkywalker
Recruit Womprat Killer
Posts: 10
Joined: Tue Jan 17, 2017 5:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Set enemy units display in map/minimap?

Post by KolSkywalker »

How can I set the map and minimap to display the enemy unit markers like in the campaign missions? Is it possible to do through the LUA scripts or something?
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Set enemy units display in map/minimap?

Post by GAB »

You mean those yellow arrows that point to the objective? If so, they're done through Lua. The campaign scripts have the best examples on how to implement them. I think you can find the code before the section of script that controls each campaign objective.
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Legacy

Re: Set enemy units display in map/minimap?

Post by giftheck »

No, I think he wants the enemy units to show up on the minimap.
KolSkywalker
Recruit Womprat Killer
Posts: 10
Joined: Tue Jan 17, 2017 5:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Set enemy units display in map/minimap?

Post by KolSkywalker »

That is right, @ggctuk. My apologies if anyone was confused. Is it possible to that? Just curious.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Set enemy units display in map/minimap?

Post by GAB »

I'm fairly sure it is. Just put the function ShowAllUnitsOnMinimap() and it should work.
KolSkywalker
Recruit Womprat Killer
Posts: 10
Joined: Tue Jan 17, 2017 5:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Set enemy units display in map/minimap?

Post by KolSkywalker »

GAB wrote:I'm fairly sure it is. Just put the function ShowAllUnitsOnMinimap() and it should work.
I tried putting the code quoted above in the LUA, but it did not work.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Set enemy units display in map/minimap?

Post by GAB »

Oh well, that was my only bet. Maybe someone else knows a way to make it work, if there is one.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Set enemy units display in map/minimap?

Post by thelegend »

Found these inside imp_inf_default_officer.odf

Code: Select all

ScanningRange       = 30.0
TransmitRange       = 300.0
Not sure about them but I think ScanningRange sets the range of view on your minimap. And TransmitRange does the opposite for AI. But that's just a thought. Try using very high numbers and put both lines to all your unit odf's (Or just the highest possible parent odf).
Post Reply