Change a variable from a switch?


#1

Hi. I’d like to make a piston that only changes a global variable when a switch is on or off.

I can create a piston where I set the IF for the switch state change, but then I want to create a statement for the THEN action and I cannot select a variable directly from there. How do I do that?

Thanks,
Rodrigo


#2

To set a variable, your action should start with Location, and then you’ll see a Set Variable option. Alternatively, instead of checking this variable in other pistons, you could just check the switch state.


#3

Thanks. I got so used to selecting something different in “do” that I thought I could select the variable from there.