Author Topic: VCE Help! toggles with varlinks.  (Read 689 times)

I've seen all the tuts but not one of them has told me how to toggle, lets say a light with them.
could someone tell me how to make a toggle light using varlinks?

these are the events i have so far,

OnActivate - Client - Chatmessage - <varlink:Lights On_lighton:1>

OnActivate - Client - Chatmessage - <varlink:Lights Off_lightoff:2>

OnVariableUpdate - Self - VCE_IfVariable - <var:client:lighton> - == - 1

OnVariableTrue - NAMED BRICK Light - SetLight - Players light

Help please.









3rd line - Use VCE_IfValue if you are using the variable replacers (<var:stuff:stuff>)
Otherwise use  OnVariableUpdate - Client - VCE_IfVariable - lighton - == - 1

Ugh... Just read it properly....

If you want it to be so you click the brick... you get the varlinks up and can turn it on or off... do something like this.


OnActivate - Client - Chatmessage - <varlink:Lights On_lightStatus:1>

OnActivate - Client - Chatmessage - <varlink:Lights Off_lightStatus:2>

OnVariableUpdate - Self - VCE_IfValue - <var:client:lightStatus> - == - 1 - 3 3

OnVariableTrue - NAMED BRICK Light - SetLight - Players light

OnVariableUpdate - Self - VCE_IfValue - <var:client:lightStatus> - == - 2  - 5 5

OnVariableTrue - NAMED BRICK Light - SetLight - None