Raycast isn't working!

I follow exactly what is in Laser and Zombies example and I want to implement it on the enemies in my game. However i soon realised that when I approach 2 enemies on the same distance , only one of the 2 enemies is raycasting. Help!

I’m not sure what is the problem I’m not very good in solving problems visually I need to test to be certain, but I just don’t have time for it in your case. Anyway until someone can offer you a real solution:

Try to make the while condition the sub-event of the one above when you take in to account all RayBulletE.
I just don’t like the idea you are crating multiple of them but finally just use a single event to control it.

If it doesn’t work, try to use a For each event also for RayBulletE and use the While condition there.

If it doesn’t solve the problem, try to take in to account all RayBulletE linked to Hero in the Action.
When you take in to account something in condition, technically you are only checking if there is link but not
necessarily pick the right one in case there are multiple ones with a link. In combination with the for each object event, many cases it is just enough but not always.
When you are using the action to take in to account the one with a link, you actually pick the ones that not only has the link but also met the conditions and this way you can be more specific regarding which object you are referring to.