Howdy guys, here's the problem:
I have a scripted event that moves the player and controls where he is looking. After The events is over and the player is back in control, the player is looking in the direction of wherever he was moving the mouse during the script.
What I'm using to look around:
OldCamAngleY# = CameraAngleY#
OldCamAngleX# = CameraAngleX#
CameraAngleY# = WrapValue(CameraAngleY#+MousemoveX()*0.2)
CameraAngleX# = WrapValue(CameraAngleX#+MousemoveY()*0.2)
Yrotate camera CurveAngle(CameraAngleY#,OldCamAngleY#,10)
Xrotate camera CurveAngle(CameraAngleX#,OldCamAngleX#,10)
yrotate object 1,curveangle(cameraangley#,oldcamangley#,10)
xrotate object 1,curveangle(cameraanglex#,oldcamanglex#,10)
What I've done:
I've made sure to set the position mouse screen width()/2,screen height()/2 Right before and even after the script ends.
I've recorded the angle that I want them looking after the script and rotated the object and camera to this angle before and after the script
I've replaced my old and new angle values to the new desired angle for when the mouse move script is called.
I don't know what to try next. Your help is greatly appreciated
The fastfood zombie killer