Jump to content

will onMessage trigger during a conditional sleep?


Recommended Posts

Posted (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 by Alakazizam
Posted

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

Posted
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...