Jump to content
Sign in to follow this  
PELHAM

Force / open GPS or simulate ctrl+M

Recommended Posts

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 by PELHAM

Share this post


Link to post
Share on other sites

_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

Yep copy and paste the RscMinimap in the ext and rename the class.

Share this post


Link to post
Share on other sites
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

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 by PELHAM
additional info

Share this post


Link to post
Share on other sites

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

Oh well - I think I'm back to hinting lol

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×