Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Variables - local, global etc.

piefke
Registered User
Quote
2018-11-03 15:13:25

Hi there,
it's me again.

I have another question:
If I define and set a variable in a scripted action (or behaviour), it is my understanding that this variable is only valid for the script itself (local) - is that correct?

Also:
is there a way to define global variables?
can I assign the value of a variable to another scene node?

Thanks and regards
Der Piefke


tim12345
Guest
Quote
2018-11-03 20:18:07

true, and for global variables you can use:
ccbGetCopperCubeVariable(varname);
ccbSetCopperCubeVariable(varname, value);



piefke
Registered User
Quote
2018-11-04 15:14:05

Thanks!

Exactly what I wanted to know


Create reply:


Posted by: (you are not logged in)


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