BGE ray sensor problem

So I have a object with a ray sensor to it. I’ve made it that when it hits the object with the property “prop”, it will end that object.

The problem is that when I put a few of the “prop” objects on the ground and hit only one of them, the sensor ends every one of them, instead of just the one I shot.

Is there an easy solution to this? Or do I have to learn python?

There is a solution to this with python and its fairly simple

you get the object with ray.hitObject

you check whether it has the property by using “if “prop” in obj”
and then end it with obj.endObject

So yeah you are gonna have to use some python but this is the solution that immediately comes to mind…

I would program the things with ‘prop’ with the logicbricks and when they get hit they remove themselves. So there is no property on that object needed. But just on the object that’s hitting it. But you need some kind of bullet that is hitting them and you need physics that way

Thanks! This worked for me