Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have: 1 PlayerNode 2 Enemy Nodes 3 PlayerStatus reporting Nodes I do this The avatars are all similar so I generalize my code. So I call a function to read the avatar status and write the answer in one concatenated string to the output. in my function I see my avatar involved and I see it properties. my code goes like this var sHealth = String.fromCharCode(35) + ......................this.name.toString() + ......................"health"; // ...... is just for place holding here on forum // String.fromCharCode(35) results in =||= the hashcharacter. // sHeath is now "=||=P1.health" as a string --> looks good to me var vHealth = ccbGetCopperCubeVariable(sHealth); // BUG message: // script 330: ReferenceError: ccbGetCopperCubeVariable is not defined. // I know =||= is an illegal character in jscode, so i try: var vHealth = ccbGetCopperCubeVariable( sHealth.toString() ); // results in same error, I now try as I would with clerk samples: var vHealth = ccbGetCopperCubeVariable( "=||=P1.health"); // =||= is ofcourse 1 character also known as Hash character // result same script 332: ReferenceError: ccbGetCopperCubeVariable is not defined. Did I break the engine or what is going on here ??? |
||||
|
I just found that: this problem only exist in the scripting window. not in the running app apparently you cant check the clerk and others intestines when he is not really alive and going around. |
|