Forum rules - please read before posting.

Zoom AdvancedThirdPersonCamera ActionList

Heyo! Apologies for a newbie question.

I am using AdvancedThirdPersonCamera, and I wanted to create an action list which would alter it's pitch. I noticed that there is an action type for rotating a third person camera, which seemed like something I needed, but then I realized that wouldn't work with the advanced camera.
My question is, is there an easy way to create such an action list for the AdvancedThirdPersonCamera? I am very new to coding, so I didn't come up with reasonable solutions so far.
Thanks!

Comments

  • Welcome to the community, @KayVenn.

    The Advanced Third Person Camera includes a new custom Action that allows you to override its rotation - you just need to point your Actions Manager to its directory.

    If you go to the Actions Manager and assign a new Custom Actions folder path as /AdventureCreator/Downloads/Advanced third person camera/Scripts/CustomActions, that should then install the Action. This should then be available in your ActionLists as "Camera: Advanced Third-person".

  • Thanks @ChrisIceBox !

    A-ha! Yeah, that indeed made the advanced camera available in the ActionLists, thanks! Although it revealed to me that controling pitch and spin won't be exactly what I wanted to achieve x_x
    My goal is to simply have an action that zooms the camera in (perhaps by controlling it's distance?) during conversations. I'm also using Dialogue System, so I was thinking about creating an ActionList to control the camera during the conversation, zooming in default, and perhaps trying out some other camera control via ActionLists, hopefully nothing too fancy. Now I'm not sure how exactly should I approach this. In case you have any ideas, I'd be very greatful for any insight!

  • If you set the Inspector's Zoom method to None, then the camera's FOV won't be controlled internally, meaning you can control it either through a separate script, or with animation.

    If you're looking to zoom to e.g. the same amount each time, animation would be a good choice. If you attached an Animator to it with "Zoom in" and "Zoom out" animations, you could then control their playback with AC's Object: Animate Action.

    Otherwise, a simple script attached to the camera can be used to set it's FOV. A function like this inside it:

    public float zoomInFOV = 30f;
    public void ZoomIn ()
    {
        GetComponent <Camera>().fieldOfView = zoomInFOV;
    }
    

    can then be called by the Object: Send message Action.

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.