PELHAM 10 Posted February 27, 2011 (edited) Is there a way to script the opening and closing of the GPS as in ctrl+M? There are useful commands for the full map such as forceMap and openMap. I need to open the GPS for a player as part of a training mission I'm working on. If not, I suppose I will have to throw a hint and hope they open it themselves. Edited February 27, 2011 by PELHAM Share this post Link to post Share on other sites
Clayman 19 Posted February 27, 2011 createDialog "RscMiniMap"; Share this post Link to post Share on other sites
PELHAM 10 Posted February 28, 2011 _cd = createDialog "RscMiniMap"; Thank you, it does work but......... The game semi-freezes. The player's movement stops working and you have to press escape to remove the GPS from screen. How do you use it and still retain movement? Share this post Link to post Share on other sites
.kju 3238 Posted February 28, 2011 use http://community.bistudio.com/wiki/cutRsc Share this post Link to post Share on other sites
PELHAM 10 Posted February 28, 2011 use http://community.bistudio.com/wiki/cutRsc cutRsc cannot find "RscMinimap" or "ItemGPS" That is possibly because it isn't defined in the description.ext, which from the examples given, looks like an ordeal in itself. Share this post Link to post Share on other sites
.kju 3238 Posted February 28, 2011 Yep copy and paste the RscMinimap in the ext and rename the class. Share this post Link to post Share on other sites
PELHAM 10 Posted March 1, 2011 Yep copy and paste the RscMinimap in the ext and rename the class. I'm struggling with this one PvP - any chance of more info? What exactly goes in the description.ext? This is the only post I can find on the subject :( Share this post Link to post Share on other sites
.kju 3238 Posted March 1, 2011 http://www.file-upload.net/download-3251413/CustomMiniMap.desert_e.7z.html Also what about http://community.bistudio.com/wiki/showGPS? Share this post Link to post Share on other sites
PELHAM 10 Posted March 2, 2011 (edited) http://www.file-upload.net/download-3251413/CustomMiniMap.desert_e.7z.htmlAlso what about http://community.bistudio.com/wiki/showGPS? Thankyou for the example PvP that is basically what I want. I was hoping it would not be so complicated as it will take some time before I understand it. It's strange there is no command to open the GPS? I think we need openGPS and visibleGPS as a minimum. showGPS is a legacy command from OFP that probably no longer works (It will not do anything for me, showMap is defunct too). It was only designed to work from the mapscreen anyway. shownGPS - does not work - returns true all the time visibleMap - works for the main map. Probably introduced as showMap no longer works. openMap - opens the main map . forceMap - is similar but you need to script to close the map again. I had very limited success with this from the wiki: createGearDialog [player, "RscDisplayGear"]; -this works for gear and shows minimap for 2 secs with "RscMiniMap" I wondered if there was a way to input the keys but could not find one. ActionKeys _array = actionKeys "MiniMapToggle" "MiniMap" "MiniMapToggle" DIK_RCONTROL 0x9D DIK_M 0x32 Edited March 2, 2011 by PELHAM additional info Share this post Link to post Share on other sites
.kju 3238 Posted March 2, 2011 No way to simulate a key press - it would be very useful. Basically the actions are this, yet they lack a lot of. Share this post Link to post Share on other sites
PELHAM 10 Posted March 2, 2011 Oh well - I think I'm back to hinting lol Share this post Link to post Share on other sites