Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
can someone make a script that when a variable/visibilty is 1 or 0 i can do an action? |
||||
|
@timo i dont think a script is needed, if you like i can do it for you, but as i said no script needed |
||||
|
oh alr, because i don't see 'when variable is .........' and then i can change a action |
||||
|
uhhh what is alr |
||||
|
https://i.postimg.cc/LhF2Y9T1/Sc... |
||||
|
' alright ' but can you make a script that when a variable is 0/1 I can assign a action |
||||
|
ALR = "Alright"or "Okay" |
||||
|
REPLY TO: VP Yes but that is when I click on something or op proximity do something (or the other) I just want 'when a variable is 0/1 assign a action |
||||
|
@timo, You can add "if a variable has value do something" action multiple times. For example, you can check the variable for the value zero "0", and you can also check it for the value one "1" and you can assign actions to both the values. if you are comfortable with scripting, then you can use ccbSetCopperCubeVariable() and ccbGetCopperCubeVariable()commands to get and set CC variables. |
||||
|
Without coding, you can use "every few seconds" as the behaviour to check to see if the variable has changed - you don't always need to use "when key pressed" or "on proximity" - you can use variable with any behaviour to control any action. |
||||
|
Thanks everyone! |
|