Forum rules - please read before posting.

Get Progress of QTE on script.

Hello, I want to get the progress of a QTE on a custom script. I start the QTE through the (Input - QTE) action, the menu appears and the QTE works correctly. I want to set an animator to match the progress of the QTE. How can this be done?


  • edited September 2022

    You can read this with the PlayerQTE class's GetProgress function:

    float progress = AC.KickStarter.playerQTE.GetProgress ();

    To apply to an Animator's float parameter named e.g. Progress:

    void Update ()
        float progress = AC.KickStarter.playerQTE.GetProgress ();
        GetComponent<Animator> ().SetFloat ("Progress", progress);
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.