Can't disable head movement

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SuperSparkplug
Posts: 65
Joined: Fri Feb 06, 2015 3:51 pm

Can't disable head movement

Post by SuperSparkplug »

Hi there,



I've been wrestling with this problem for a while now. I'm trying to make this conversation system work from a first person player controller. When I enter conversation states, I cannot stop the head from moving up and down in the Y direction, meaning that when I got to choose my dialogue choice at the bottom of the screen, my head constantly moves. As far as I can tell, I told the system to disable movement and other functions while its in a conversation, disabled closeup, and set my enabler to set all of my player character's scripts to false. However the issue still persists.



How do I make my first person camera not move when I'm in a dialogue state?
User avatar
Tony Li
Posts: 21026
Joined: Thu Jul 18, 2013 1:27 pm

Can't disable head movement

Post by Tony Li »

Hi,



Your camera GameObject probably has a second MouseLook script. Often the player object has a left/right MouseLook, and the camera has an up/down MouseLook. Use Set Component Enabled On Dialogue Event to disable this script, too.



The easiest way to do this is to lock the inspector view on your player object. (Click the padlock icon in the upper right of the inspector.) Then open another inspector by right-clicking on a different tab, such as the Scene view tab, and selecting Inspector. Then select your camera. This way, you can drag the camera's MouseLook to the player's Set Enabled On Dialogue Event component.
User avatar
DearDeerDee
Posts: 30
Joined: Mon Mar 22, 2021 10:00 am

Re: Can't disable head movement

Post by DearDeerDee »

Hi Tony, I'm also having this issue atm.

I have a camera game object as the player's child game object, and the camera looks around whenever I move my mouse in conversation.
Your camera GameObject probably has a second MouseLook script. Often the player object has a left/right MouseLook, and the camera has an up/down MouseLook. Use Set Component Enabled On Dialogue Event to disable this script, too.
I don't have ta mouseLook script attached to my camera game object. The attached components are all camera properties, post effects and etc. What should I do to disable camera moving then?
User avatar
Tony Li
Posts: 21026
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't disable head movement

Post by Tony Li »

Hi,

Some script is moving the camera in response to mouse input. See if you can locate that script. It's most likely on the camera or on the player GameObject.
Post Reply