Forum rules - please read before posting.

Close interaction menu

Hey, I recently updated AC, and now have a small problem with "Close Interaction menus even if Interaction doesn't block gameplay?". I want it to close even if the interaction doesn't block gameplay. It's only closing when I put "Cut scene while moving". Any ideas?

https://ibb.co/vXbV9fW
https://ibb.co/LZ4jwC8
https://ibb.co/3pxZnFL

Comments

  • edited May 2021

    Welcome to the community, @black_toad.

    This option refers to the state of the Interaction ActionList (i.e. its "When running" Inspector field) - rather than the state of the game while the Player moves towards the Hotspot.

    I shall give this some thought, though. In the meantime, try attaching this script (ForceCloseInteractionMenu.cs) to your Player:

    using UnityEngine;
    using AC;
    
    public class ForceCloseInterationMenu : MonoBehaviour
    {
    
        private void OnEnable () { EventManager.OnHotspotInteract += OnHotspotInteract; }
        private void OnDisable () { EventManager.OnHotspotInteract -= OnHotspotInteract; }
    
        private void OnHotspotInteract (Hotspot hotspot, AC.Button button)
        {
            KickStarter.playerMenus.CloseInteractionMenus ();
        }
    
    }
    

    That should cause the menu to close immediately upon choosing an option from the Interaction menu.

  • It works! You are awesome, thank you!

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.