playMaker

Author Topic: Request to one of the Clone's objects through RayCast [SOLVED]  (Read 1386 times)

Nikmady

  • Playmaker Newbie
  • *
  • Posts: 15
Hello, help me please to solve problem.
There is a Mother-Zombie(prefab), she makes 3 Child in different points (all of them  writing in one global Variable).
Get Child Count test – positive, 3 ZombieChild(Clone) in hierarchy.

The Mother Zombie(prefab) has Colliders for “bullet blood holes”
HeadHitCollider
ChestHitCollider
BodyHitCollider
And etc….

There is a Gun what use RayCast Ignor Triggers, whats on the fly define ALL Child’s Hit’s Colliders perfectly!
The Problem is:
Using action “Find GameObject” and “Compare Game Object”, when Gun shooting, blood's holes stay only on the first ZombieChild(Clone), others don’t pass the Compare GameObject test.

I don’t understand how to make Unity, request EXACTLY to ChestHitCollider, EXACTLY to ZombieChild(Clone) whats shooting by RayCast, and in the end pass Compare GameObject test.
Or How Find Game Object in already Raycasted Object.


« Last Edit: June 22, 2018, 07:39:02 AM by Nikmady »

Nikmady

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Request to one of the Clone's objects through RayCast
« Reply #1 on: June 22, 2018, 07:38:29 AM »
Problem solved through Get Name and Get Child =)