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

1 Answer

1

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.