Jump to content
  • 0

How to disable "debug monitor" show after hintC


se7en

Question

Hi, first of all im a bit newbie in all these stuff but trying to learn ;)

 

Managed to add a menu already with script "help.sqf".

 

Help.sqf:

private["_separator1","_txt"];
cutText ["HOLD LEFT-CLICK ON TEXT AND DRAG UP AND DOWN, PRESS ESCAPE TO CLEAR OR CONTINUE ON BOTTOM!", "PLAIN DOWN"];
sleep 1;
"General Help" hintC [
"Press SPACE to jump",
"Press ESCAPE and EXIT game to have unlimited ammo"
];

 

But unfortunately when i press "continue" it goes to the "debug monitor" thing with same text i entered above.

To close this i would need to press INSERT but then my default debug monitor goes in and cant switch it off.

 

How to permanently disable this debug monitor?

(im using gui to display all info)

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

1. You deleted some stuff in your help.sqf -> take this (now) useless line out, it will be cleaner: 

private["_separator1","_txt"];

(it's useless because you deleted the _separator1 and _txt variable :) )

 

2. I would try this, since IIRC there is no way to write some code like waitUntil { isNull dialog 1}; or such, so I'd do it this way, even tho I am absolutely not sure if this would work or no.

_MyTimerVar = 1;
While {_MyTimerVar == 1} do { hint ''; };
sleep 10;
_MyTimerVar = 0;

This does -

The average time to read that thing is approx 10 seconds, right? So

We make a variable, and while that var == our first value, it will hint '', so the hint is nothing.

And that sleep function, will make it so after 10 secs, our var will become 0, so that the 'while' code wont be executed again :)

 

Keep me up!

xBowBii

Link to comment
Share on other sites

  • 0

While packing my admin tool up I remembered I had this piece of code which is exactly what you need.

handler = (findDisplay 72) displayAddEventHandler ['unload','_this spawn {hintSilent ""; (_this select 0) displayRemoveEventHandler ["unload",handler];};'];

Stick that just after your hintC call and all should be good. Good luck.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...