Converse Bug

magique

Active member
I found a bug in the Convserse ability when using Third Person Controller with Dialogue System.

The DetachCamera does not work so I was unable to do a Camera(Closeup) in Dialogue System because the CameraController is still enabled. The reason is due to some obsolete/incorrect code in AbilityStarted and AbilityStopped functions. See below where I've replace the code to fetch the CameraController to properly get the instance. The old code, commented out, returns null.

C#:
            if (m_DetachCamera)
            {
                var lookSource = m_CharacterLocomotion.LookSource;
                if (lookSource != null)
                {
                    //var cameraController = lookSource.GameObject.GetComponent<CameraController>();
                    var cameraController = lookSource as Camera.CameraController;
                    if (cameraController != null)
                    {
                        cameraController.enabled = false;
                    }
                }
            }

The above snippet was from the AbilityStarted function. The same change needs to be made in AbilityStopped.
 
It looks like you're using an old version of the Dialogue System integration - the Converse ability that I have looks different. I would try getting the latest and seeing if that works.
 
Last edited:
Top