Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Hi! Niko and all! Need help in coding JS

eminem100
Guest
Quote
2017-07-06 18:23:46

Can Anyone here help me in coding this :-


Game starts:-
(1)Every 1 ms the playerhealth variable is changing according to the health of FPS Camera. (because directly using (hash)Camera1.health results in a error Illegal Character.

(2) if the player enters the proximity area of enemy (goto (3)) else (5)

(3) loop shooting the player till the player dies. with the using second statement :- playerhealth > 0; the enemy will keep on shooting the player till it dies. If the player Dies ( goto (4));

(4) // leave this one. I'll code (4) myself.

(5) keep roaming here and there //I'll code this myself.



Hope that anyone has solution for my problem.


niko
Moderator
Quote
2017-07-07 07:56:37

1) the problem that you get something like "error Illegal Character" just means that you have some problem in your syntax. Repairing that instead would probably be easier.

You can do the other things using actions. Use that proximity behavior, together with an if. I'd for example then do an "every few seconds do" behavior which shoots at the player. But put an "if" before the "shoot" action which tests if the player is in proximity, based on a variable you set in that behavior aboe.


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