Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Changing node attributes on runtime?

angstloch
Registered User
Quote
2022-06-10 13:30:29

Hi! Is there any way to change node attributes, such as the scene's fog, the main camera field of view or a character speed in the middle of the game? Thank you :)


okeoke
Registered User
Quote
2022-06-10 17:43:25

Hi, check https://www.ambiera.com/coppercube/doc/index.html there is special variable section in the bottom of the page. But I don't think it works for everything you mentioned.


just_in_case
Moderator
Quote
2022-06-10 18:08:20

There is already an action for this on my website here. So that you don't have to code it manually. Simply select the node whose property or attributes you want to change, type the attribute name that you want to change and the new value that you want to assign for that attribute.

Hope you will find it useful.

Here is the link to the extension:_
https://neophyte.cf/ccb_action_c...


angstloch
Registered User
Quote
2022-06-10 18:23:52

Thanks for your help guys! Found some interesting methods in the docs but tbh I was thinking something more like @just_in_case 's solution so i dont have to go full js on this ???????? that web of yours looks amazing btw!


angstloch
Registered User
Quote
2022-06-10 19:56:18

Hey, sorry, me again.

So far @just_in_case action worked perfectly for cameras and other nodes, but i can't seem to make it work for the main scene. This should trigger on proximity with an object (i mention that cause proximity often gives me trouble):

🔎︎


I think I've tried all combinations of, yknow, ticks and stuff, also tried hexa values -- to no avail. (Actually i'd like to change FogDensity rather than FogColor, but only the later is a valid property according to the documentation, and anyway i canĀ“t make work any of them). What do you think could be the issue? Thanks again!


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