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.

3 comments
I believe if you have a script that changes the current camera type to scriptable they won't be able to move it and you can change it back afterwards,
Thanks that worked!
Glad I could help.