Quote:
Originally Posted by Vet
So is there a way to tell when the query function has gotten the info from the client? Or do you just stick in a task and guess at the time?
|
I'm not sure if I understand your question, but you can't predict when it will be executed. When the server receives the client's cvar value, that is when the
query_results() function will be called.
In this case you could actually record the time it takes to get the client's cvar value if you really wanted, but I don't think that's actually valuable information.
If you'd like to know when the variable contains all the info, or when all of the clients' cvars have been recorded, you can just add another global variable to count how many times
query_results() has been executed for each client. Then check if every client has had it executed 3 times (3 different cvars).