Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Detect Collision with Clone of an Object?

drnibbert
Registered User
Quote
2022-01-04 09:33:34

Hello everyone!

When i use the "Shoot"-Behavior and set it to "Create Clones of a Scene Node" - how can i make an object react to being shot with that clone of a SceneNode?
I tried to give the target object an "when close to"-Behavior and set it to "close to: Scene Node" - and use the scene node i use as bullet - but that doesn't trigger the event.
What am i doing wrong?
Thanks a lot for your support :-)


just_in_case
Moderator
Quote
2022-01-04 11:33:09

You can use the action on impact inside the shoot action to detect collision of the bullet, to better understand it you can load the particles example file that comes prebuilt inside the editor, and when you shoot in that example file you can see a fire explosion whenever the bullet hits any object.


drnibbert
Registered User
Quote
2022-01-05 08:16:09

Thanks for the Tipp! :-)

Can you point me in the direction how i can skript interactions between Objects with this?

For example:
"On Impact turn the object i've hit invisible"
or
"On Impact subtract 5 health-points from the "object i've hit" ?

Thanks so much!! :-)


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