Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Change Behaviour/Action properties at Runtime.

mostock
Registered User
Quote
2023-01-21 21:38:11

Hi, I want to change Behaviour/Action properties at runtime, like changing player's speed at runtime programmatically.

thanks in advance


just_in_case
Moderator
Quote
2023-01-22 04:46:30

Well, there are only some parameters that you can change with special variables. Movement speed can be changed with the special variable
player.movementspeed
there is hashtag prefix also. player is the name of the scenenode whose speed you want to change.
Also it will only work if you are using inbuilt behaviors like AI or controlled by keyboard.

Other than that, no you can't acess inbuilt behaviors or actions during runtime. however if you are using third party extensions then you already have the source code, you can modify it and can alter the parameters during runtime, but not for inbuilt animators(behavior) and events(action).


Create reply:


Posted by: (you are not logged in)


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