I used this script:
CODE
begin YAC_SRT_Test
float eyex
float eyey
float eyez
float timer
if ( menumode )
return
endif
if ( timer < 1 )
set timer to ( timer + getsecondspassed )
return
endif
set timer to 0
setx eyex, eyey, eyez to MGEGetEyeVec
if ( eyex> 1 )
return
endif
if ( eyex< -1 )
return
endif
if ( eyey > 1 )
return
endif
if ( eyey < -1 )
return
endif
if ( eyez > 1 )
return
endif
if ( eyez < -1 )
return
endif
setx eyez to xArcSin, eyez
set eyez to ( eyez * ( 180 / 3.141592 ) )
messagebox, "%.2f", eyez
end
And it didn't return a constant value (even with disablePlayerLooking enabled), and it only gave the right result about 1 in 4 times
EDIT:
clownbaton script worked better, exactly 1/2 chance of a correct answer, which I may be a problem with the script rather than MGE. Looks like I am back to using pipes

QUOTE
BTW, I did that same thing, but I used PlaceAtPC to get the coordinates I needed. The advantage is that (besides from simpler script) it won't place anything in the void or where another object already sits.
Did you only move a set distance forward then, as I can't see how you can test for colision along a line using only placeAtPC.