ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator JS to change Behavior Attribute
person icon
morbott
Registered User
Quote
2025-04-07 18:59:32

From within a Execute Java Script Action, is it possible to run some sort of code to change an attribute inside a behavior?

For example, press left mouse button to triggers the run javascript action that changes the value of... lets say the ActivationRadius in the Game Actor behavior of an object

Thanks in advance.
:)
M

person icon
swordmaster
Guest
Quote
2025-04-08 04:02:33

Depend, some internal behaviors have proprieties that can be changed acessing specifics variables in action set variable.
There is one action from just in case with name action change attribute in his page, that action allow to change some proprieties from coppercube.
It is possible use javascript to change proprieties listed in coppercube javascript reference, If you have new coppercube studio version 6.7, and know how to program you can customize many things from coppercube use binnaries made from you or other people.
Some internal functions and behaviors can not be acessed or changed proprieties, normally this is happen in coppercube internal behaviors, In third party behavior you can acess the javascript code and change what you want.
Thanks the attention


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 |