Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
door has bihavior "when clicked on this do something" with my action OpenDoor which has two subactions "change rotation of a scnene node" Open(rotate y 90) and Close(rotate y -90) then main action save door status by ccbSetCopperCubeVariable camera has bihavior "when key is pressed do something" (LMB keypressed down) with action Shoot probe 1. camera mode LookWhenMouseDown = false, aim at door then click result 1. windows: door always doing action open and camera shoot webgl: door open/close and camera shoot probe 2. camera mode LookWhenMouseDown = true, aim cursor at door then click result 2. windows: door open always doing action open and camera NOT shoot webgl: door open/close and camera shoot bug1: dont stop propagation event when door clicked with LookWhenMouseDown == false or (LookWhenMouseDown == true and webgl platform) bug2: ccbSetCopperCubeVariable not work for windows /* test project http://www.elmigo.ru/test/dm3d.z... my PC - os: win10x64, cpu: intel 7200u, vga: intel hd 620 |
||||
|
ccbGetCopperCubeVariable is work, my error |
||||
|
sorry, not my error, this is engine "feature" at windows
console always print "wtf?" if i using numbers instead bool value then work ok for platform compatiblity dont use bool values, right code is
|
||||
|
Yeah, its a feature of the engine. ccbSetCopperCubeVariable can only use numbers for a value. Its what I used in my double jump script. Its annoying but if you have the studio edition of CC6, then you could just fix it yourself. Otherwise... we have to deal with it. Instead, you could make a global function within your extension code that can take a value and set a bool based on the value. The only inconvenience is you have to use "Execute JavaScript" to change the value now, not the set variable function.
Then add `Execute JavaScript` with `myFunc(false);`. This is just a workaround, however. |
|