 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).
|