Alakazizam Posted March 17 Share Posted March 17 (edited) if something triggers a conditional sleep with a boolean being true as a wake condition, will an onMessage event be able to change that boolean to stop that conditional sleep? Edit: Answered my own question. Yes the onMessage events will still fire off during a conditional break. Edited March 17 by Alakazizam Quote Link to comment Share on other sites More sharing options...
Malcolm Posted March 18 Share Posted March 18 Yes, it runs on a separate thread than the main thread. 2 Quote Link to comment Share on other sites More sharing options...
TheCongregation Posted March 19 Share Posted March 19 could this onmessage register if it says something like "someone else is fighting that" in that chatbox? because I use "getmessages" for game chatbox and it just reads the whole chatbox so that if the message comes up once it repeats it forever... can never design it so it only reads the most recent and then react and then continue and discount it Quote Link to comment Share on other sites More sharing options...
Gunman Posted March 19 Share Posted March 19 9 hours ago, TheCongregation said: could this onmessage register if it says something like "someone else is fighting that" in that chatbox? because I use "getmessages" for game chatbox and it just reads the whole chatbox so that if the message comes up once it repeats it forever... can never design it so it only reads the most recent and then react and then continue and discount it It calls that method everytime there's a new message in chat. Print out the calls and see if it would work in your case Quote Link to comment Share on other sites More sharing options...