Checking for Active Wait Commands
Shadecerule
18 Oct 2021, 10:25Is 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.
mrangel
18 Oct 2021, 14:34Hmm… 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.