ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator How to change the value of a variable of a behavior
person icon
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"

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

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

person icon
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?

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

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

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

Ok thank you

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

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


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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