Jump to content
Sign in to follow this  
legman

Displaying the Escape/Pause Menu

Recommended Posts

Hello there I have a question regarding a SQF project I am currently working on.

I have created an 'incapacitated' state when players get shot, entering this state brings up a custom dialog which is essentially blank. This prevents the user interacting with anything as they lie there unconscious.

What I intend to do is overwrite the ESC key using 'displayAddEventHandler' so that opens the default Escape/Pause menu - however I am having trouble finding the config name for that particular dialog panel. I also question if this is even possible via scripts alone?

Any help would be greatly appreciated!

Thanks :)

Share this post


Link to post
Share on other sites

bump - i still need help with this issue!

Share this post


Link to post
Share on other sites

You need to execute the following line of code:

_nul = createDialog "RscDisplayInterrupt";

There are more elegant ways of doing this, but its a start :)

Hope it helps,

Bull

Share this post


Link to post
Share on other sites

While you can open the menu using createDialog or createDisplay, it won't work correctly. I'm afraid there's currently no way how to force open functional pause menu.

Share this post


Link to post
Share on other sites

Is this due to a limitation in scripting and something that the engine handles?

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  

×