If you have a global variable (varGlobal) that you send to clients with send_var can you be sure that varGlobal will contain the same value if you call another function. I know you cannot be sure after a wait command but not sure about when you leave a function.

Hopefully the comments in my code explain what I mean.

Code:
  
var varGlobal
...
function DoSomethingWithGlobalVariable()
{
//Are we sure varGlobal is the same here as when event was raised?

wait(1);
//varGlobal may not contain the same value now as wait continues other functions
}
...
function on_client_event(void* data, var id)
{
if (event_type==EVENT_VAR)
{
if (data==&varGlobal)
{
//varGlobal now contains the value sent by the server.
DoSomethingWithGlobalVariable()
}
}
}