Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I want to make it so that the speed to slow down from walking and from running is different. To achieve this, I created a first person camera. I want to make it so that pressing shift changes the "MsToSlowDown" value from the first person camera behaviour to a higher one and releasing it sets it to a default value. I have tried the following two snippets of code through the "Execute Java Script" action after looking through some examples on the forum and through documentation: ccbSetCopperCubeVariable("Player.MsToSlowDown", 700) andvar s = ccbGetSceneNodeFromName("Player");neither of which seem to work. What would be the correct syntax to change a property of a behaviour? Or is that simply not possible? |
||||
|
To get this working, do not use script, rather use set variable action and use player.movementspeed as variable and set the value to the speed you want the word 'player' should be replaced with the name of your character for example if he's called man, it should be man.movementspeed Oh snap, if you mean the MsToSlowDown parameter in fps camera behavour then i dont think that is configurable |
||||
|
|