Author Topic: Allowing Raycast (Hitscan) shots to go through bricks  (Read 486 times)

Possible? I don't know much about torque script, and my scripter doesn't care for raycast weapons, so he won't bother to check it out.
An example would be appreciated, or an idea.

Just don't put the brick mask in the raycast's typemasks.

Just don't put the brick mask in the raycast's typemasks.

..........

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.
« Last Edit: July 11, 2012, 04:11:46 AM by Port »