OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Mr.Peanut on 23 Nov 2010, 18:21:07
-
Is there any way to open the minimap from a script?
-
what about http://community.bistudio.com/wiki?title=openMap?
-
thanks. think that opens full map screen only.
-
what is the minimap - the gps?
-
I believe he's refering to the GPS/map that can be accessed by pressing rigt Ctrl + M in game. AFAIK there's no way to display it from a script. User input is required.
-
yes. i meant the gps. i did not think it would be possible.
-
It might, however, be possible to create a custom map resource which is roughly the size of the GPS, but of course it wouldn't work in the same way at all...unless someone managed to do a lot of scripting magic to it, of course. :scratch: Anyway, that's over my head, but it's a thought.
What do you need it for, if anything? :)
Wolfrug out.
-
I don't really need it any more. Someone asked me to make a quick and dirty altimeter script for the default OA HALO script. Players were becoming pancakes in overcast conditions! :P
Players like to use the minimap for navigation when sky-diving, so I thought I might add the altitude as marker text on an empty marker. But then I thought players might not know to open the minimap...
In the end I pulled a page from ACE2 HALO and used hintSilent instead with coloured text.
-
A (custom) minimap is actually very simple. You only need to define class RscMapControl in the ext and base your dialog on it.
You can check the code in AAS or A&S ProMode for example.