Forum rules - please read before posting.

Unity Third Person Controller integration

Hi All! I've tried to use the script from adventure-creator fandom for Unity Third Person Controller. Generally, it works, except I'm still able to control the characters somewhat during cutscenes.
https://gfycat.com/rashunhealthydingo
I'm not sure if the integration script was written by someone from this community, but maybe somebody got it working properly?

Links for the integration script
https://adventure-creator.fandom.com/wiki/Unity_Third_Person_Controller_integration
And Unity's asset
https://assetstore.unity.com/packages/essentials/asset-packs/standard-assets-for-unity-2017-3-32351

Comments

  • I wrote the script. Do you have a NavMeshAgent component attached? Let's see screenshots of the full Inspector, as well as your Settings Manager, as well.

    Can you also share a similar gif but show the Player component and integration script's component instead? Before you do that, though, change the lines:

    private enum ControlState { UnderDirectControl, UnityPathfinding, ACTurning };
    private ControlState controlState = ControlState.ACTurning;
    

    to:

    public enum ControlState { UnderDirectControl, UnityPathfinding, ACTurning };
    public ControlState controlState = ControlState.ACTurning;
    

    That way, we can see what's going on inside as it runs.

  • edited January 2020

    Hi Chris!
    Here's two screenshots of the Settings Manager and Players Inspector windows


    The movement settings is set to Direct, Mouse and Keyboard.
    Here's the video
    https://gfycat.com/shockedlazyblackpanther

  • edited January 2020

    This is likely a conflict with the NavMeshAgent Integration component. This should not be necessary - the Third Person Controller wiki script should update the NavMeshAgent itself.

    Try removing it - and if there's still an issue, let's see a new video of the same thing.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.