Forum rules - please read before posting.

Can you toggle 'skip' and/or 'display forever' via ActionList

I was wondering if there is a way to toggle these on and off (one or the other, or both) via an ActionList?

Image: https://imgur.com/gogEkW0

Unity version: 2021.3.21f1
AC version: 1.77.4a

Comments

  • edited July 2023

    You can do this either from a custom Action, or by using the Object: Send message or Object: Call event Actions to trigger code in a custom script.

    Any Manager field can be modified at runtime - just right-click its label to get an API reference to it.

    A tutorial on this approach can be found here.

  • edited July 2023

    Thanks Chris...this works perfectly. :)

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class SkipMouseClick : MonoBehaviour
    {
        public void SwitchToClickOff()
        {
            AC.KickStarter.speechManager.displayForever = false;
            AC.KickStarter.speechManager.canSkipWithMouseClicks = false;
        }
    
    public void SwitchToClickOn()
        {
            AC.KickStarter.speechManager.displayForever = true;
            AC.KickStarter.speechManager.canSkipWithMouseClicks = true;
        }
    }
    
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.