Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Shoot

Zoo
Guest
Quote
2019-09-21 21:07:47

Hey folks

I am looking for the javascript that makes shoot from a scene node, not the AI

I specifically need the code for shooting from a scene node that is not AI.

or maybe there is code that allows me to execute the shoot action?

Is that possible?


bracer
Registered User
Quote
2019-09-22 00:36:32

var Original_Bullet = ccbGetSceneNodeFromName("Original_Bullet");
var Cloned_Bullet = ccbCloneSceneNode(Original_Node);

Now you can handle the Cloned_Bullet yourself.
If there is a LOT of bullet store it in an array.


Zoo
Guest
Quote
2019-09-23 21:16:33

Hey There.

I managed to resolve the issue in a different way by using coppercube variables.

Works like a charm.


morice.cube
Registered User
Quote
2019-12-01 20:05:48

Hi, Zoo.

Download the project on this article:
https://www.ambiera.com/forum.ph...

It has a way to shoot and aim the gun.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (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