How to make a 3D Line of Sight System?

this thread may help you