Page 1 of 1

Set enemy units display in map/minimap?

Posted: Wed Feb 08, 2017 7:37 am
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?

Re: Set enemy units display in map/minimap?

Posted: Wed Feb 08, 2017 9:23 am
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.

Re: Set enemy units display in map/minimap?

Posted: Wed Feb 08, 2017 7:58 pm
by giftheck
No, I think he wants the enemy units to show up on the minimap.

Re: Set enemy units display in map/minimap?

Posted: Wed Feb 08, 2017 8:15 pm
by KolSkywalker
That is right, @ggctuk. My apologies if anyone was confused. Is it possible to that? Just curious.

Re: Set enemy units display in map/minimap?

Posted: Thu Feb 09, 2017 8:29 am
by GAB
I'm fairly sure it is. Just put the function ShowAllUnitsOnMinimap() and it should work.

Re: Set enemy units display in map/minimap?

Posted: Thu Feb 09, 2017 2:51 pm
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.

Re: Set enemy units display in map/minimap?

Posted: Thu Feb 09, 2017 4:54 pm
by GAB
Oh well, that was my only bet. Maybe someone else knows a way to make it work, if there is one.

Re: Set enemy units display in map/minimap?

Posted: Sun Feb 12, 2017 6:43 am
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).