Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Health Point in Javascript (Health Potion)

Zoo
Guest
Quote
2017-04-06 16:36:14

Does someone have some example code on how to set health of player in Javascript? or at least an example with the "set variable" behavior?

I tried

$Camera1.health$ = 30;

But it does not work

I also tried

$Camera1.health$ = 30;

and

Camera1.health = 30;

What am missing?

I am trying to add health to the player, like a potion


Zoo
Guest
Quote
2017-04-06 16:52:28

Resolved

Camera1.health when using the "set variable" behavior


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact