Author Topic: Using variables from VCE?  (Read 677 times)

I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?

Is the variable you're trying to use a CL variable?

I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?
According to Zack0Wack0 this was changed in VCE v5. Now events are namespaced to the user. There are functions too for saving/loading VCE variables.

I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?
If you're talking about v4+ then it wont be .var[%var].
Take a look at VCE Hud Prints.