Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
variable or visible

timo
Registered User
Quote
2023-01-17 20:34:03

can someone make a script that when a variable/visibilty is 1 or 0 i can do an action?


edwin123
Registered User
Quote
2023-01-17 20:51:25

@timo i dont think a script is needed, if you like i can do it for you, but as i said no script needed


timo
Registered User
Quote
2023-01-17 21:08:25

oh alr, because i don't see 'when variable is .........' and then i can change a action


edwin123
Registered User
Quote
2023-01-17 23:02:05

uhhh what is alr


VP
Guest
Quote
2023-01-18 08:24:38

https://i.postimg.cc/LhF2Y9T1/Sc...


timo
Registered User
Quote
2023-01-18 08:25:21

' alright ' but can you make a script that when a variable is 0/1 I can assign a action


VP
Guest
Quote
2023-01-18 08:27:08

ALR = "Alright"or "Okay"


timo
Registered User
Quote
2023-01-18 08:27:49

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


just_in_case
Moderator
Quote
2023-01-18 09:02:45

@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.


VP
Guest
Quote
2023-01-18 09:37:24

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.


timo
Registered User
Quote
2023-01-18 09:51:02

Thanks everyone!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact