Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
How to change the value of a variable of a behavior

lucas007
Registered User
Quote
2024-05-28 19:00:32

Hi everyone
I created a behavior for the controle of a character of my game. I would like to know: "how to change the value of a variable of the behavior using the coppercube action change the value of variable"


Guest
Guest
Quote
2024-05-28 19:57:49

Make a variable in your behavior that gets a CC variable with ccbGetCopperCubeVariable().


lucas007
Registered User
Quote
2024-06-02 08:56:38

Thanks for replying
So I need to change my script and add new property that corresponds to the CC variable?


Guest
Guest
Quote
2024-06-02 20:36:35

Yes, then use ccbSetCopperCubeVariable() with the same variable during runtime.


lucas007
Registered User
Quote
2024-06-10 08:32:07

Ok thank you


Guest
Guest
Quote
2024-06-10 19:15:17

You're welcome. Let us know if you need any other help.


Create reply:


Posted by: (you are not logged in)


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