Ghostly Rays?

I’m probably going to get a lot of negativity from this, but here goes…I’ve got a system rigged up so you can call all characters to a single place. It adds a really tall box at the point that the characters will see, using a ray, and walk towards (and jump if there’s a gap in the way or if it’s on a different elevation). The problem is, if the caller is on a higher platform, then the seeking ray will hit the side of the platform and the character won’t move that way.

The question is this: How can I make a ray keep going until it hits an object with the property it’s looking for? Yes, I know I can use radars, but they freeze the engine when they’re on an AddedObject, which I need to use so I don’t have to copy each character for each scene.

The reason I need to call all characters is that they each have different abilities, and you need to get them all through areas without having to move them all one by one.

i dont know i’ve been trying for a long time but i cant think of any way to do this

it would be really usefull for bulletholes through glass and stuff

I just had an idea that when the ray hits an object, it adds an object at the point of contact that adds another ray on the other side of the object, and this continues until the callbox is hit. But I can’t figure out how to link the rays (i.e., the red guy only reacts to his rays and not the green guy’s, even though the rays must be identical).

I’ve tried that too and havn’t had any luck but you can try