Alakazizam Posted March 17, 2024 Posted March 17, 2024 (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, 2024 by Alakazizam
Malcolm Posted March 18, 2024 Posted March 18, 2024 Yes, it runs on a separate thread than the main thread. 2
TheCongregation Posted March 19, 2024 Posted March 19, 2024 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
Gunman Posted March 19, 2024 Posted March 19, 2024 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