I am having a bit trouble making a precise aim system with the newxvalue, newyvalue and newxvalue, my code is like this
(object 100 is player, object 50 is a plain with crosshair texture)
` make sure mouse aim stays within acceptable angles
xrotate object 100,object angle x(100)+mousemovey()
if object angle x(100) > 5 then xrotate object 100,5
if object angle x(100) < -20 then xrotate object 100,-20
yrotate object 100,object angle y(100)+mousemovex()
` position crosshair
position object 50,newxvalue(object position x(100),object angle y(100),13),newyvalue(object position y(100),object angle x(100),13)-1,newzvalue(object position z(100),object angle y(100),13)
` rotate crosshair to local player
yrotate object 50,object angle y(100)
xrotate object 50,object angle x(100)
I subtract 1 from y value to make it a bit more precise :-P
The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...