Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, Is it possible to access the player health with javascript? Whatever I tried it always return NaN. Thanks. |
||||
|
Yeah you can acess that, only if you know the name of the player scenenode... For example if your player name is 'ghost' then you can acess the health variable by this.... ccbgetcoppercubevariable ('ghost.health') Remember there is hash before the ghost.health and always remember to use quotes... Thats it ... Now you can acess the variable.. |
||||
|
thanks, I was pulling my hair but never thought about this method. |
|