Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Add 1 to a variable every 250ms?

aloan
Registered User
Quote
2020-06-10 15:49:54

I've discovered how to set a variable using coppercube's javascript, but what about adding a 1 to it every 250ms?
There is no "ccbAddToCopperCubeVariable", so after I had already set an every 250ms, I tried executing this:

ccbSetCopperCubeVariable("var1", +=1);

and got a syntax error! I know this must be wrong so how do I add to it?


AnAverageGuest
Guest
Quote
2020-06-11 02:07:07

Change the += to =+


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (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