EDIT:A function to see if an entity is in view of another in 3d
Function IsInRadarView(ent1,ent2,radiusx#,radiusy#,range#,fov#) TFormPoint EntityX(ent2,1),EntityY(ent2,1)+15,EntityZ(ent2,1),0,ent1 If (TFormedZ()-radiusx)<=range If (Abs(TFormedY())-radiusy) <=((TFormedZ()+1)*fov) If (Abs(TFormedX())-radiusx)<=((TFormedZ()+1)*fov) ;if EntityVisible(ent1,ent2) Return True ;else ;Return False ;EndIf Else Return False EndIf Else Return False EndIf Else Return False EndIf End Function