- Home /
Respawn looking
Hello all,
I have been working on when my FPS goes to like the edge of the map he is respawned back at the beginning. I have the collider setup and the transform of the fps position. THe problem I am having is that I want to reset the direction it is looking. I tried a transform.lookat, but is doesn't seem to work. I believe the mouselook code is overriding it. I was wondering if anyone can help.
I would like to be able to respawn in a given location and look in a certain direction.
Thanks
Answer by Username801 · Jan 28, 2021 at 11:35 PM
Maybe if the mouselook code is interfering with it, have it only run when a new bool named something like playerHasLookControl. Then turn it off at the respawn and set the direction, reactivating once you have control.
Your answer
Follow this Question
Related Questions
Rotation offset help! 0 Answers
How do I make the character look at the mouse? 0 Answers
Using MouseLook script with LookAt function 2 Answers
Gimbal-Lock with LookAt, RotateTowards, and LookRotation 0 Answers
Simulating Mouse Input for AI 0 Answers