I am making a chest script and when the player presses E to open the chest, they are positioned so that they are facing the chest.
I do not want the player to be able to turn in any way because it'll look unrealistic so I need help disabling mouse lock temporarily, or preventing the person from being able to turn at all, for that short moment.
The reason I need this is also because an animation will be played while opening the chest, so again, i need it to look as realistic as possible.
This question has been answered already. The solution for anyone who was wondering, was adding a script that would change the CurrentCamera type to Scriptable and then changing it back after the animation was over.