If you're trying to avoid specific bricks, containerRayCast(start, end, masks, %obj1 | %obj2 | %obj3 | %obj4) could work. It did the last time I tried it, but that was almost a year ago. Otherwise, you'll just have to manually offset the raycast origin (start) and continue it from there, using the brick you're starting from as the ignored object.