Checking for Active Wait Commands

Is there a way to check if the client is currently waiting for player input? I have some timed events that print text, but I don't want those events to execute if there is an active menu or wait command that needs the player's input to continue.


Hmm… that's a tough one.

You can check if there's a menu running by using the condition HasScript (game, "menucallback"). (When a menu is open, game.menucallback is the script to run when it gets a response).

For get input and wait, I'd recommend setting a flag somewhere when they're up, which your timer can check.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums