Forum rules - please read before posting.

Disabling hotkeys temporarily

Hi all,

Does anyone know if there is a way to temporarily disable hotkeys / mapped keys through actionlists?

I noticed I have an input thing going on, but if the player types "i" , it causes the inventory box to open up.
I suppose I want that behavior temporarily disabled, without actually disabling the menu.

Thanks!

Comments

  • How is the "i" key linked to the Inventory menu? Via Active Inputs, or the Menu's Appear type being set to On Input Key?

    If Active Inputs, you can use the Input: Toggle active Action to temporarily disable inputs.

    If "On Input Key", you can use the Menu: Change state Action to temporarily lock the Inventory menu. When a menu is locked, it will not turn on when its "Appear type" condition is met.

  • edited July 2024

    Hi Chris,

    Just bumping from the first message --

    I'm using "On Input Key", but I don't want to disable the menu-- I want the player to still be able to access the inventory through a button click (of the inventory icon I have on the top-right), just not through the "i" key!

    Is this possible?
    Feel free to let me know at your time -- thank you! :)

  • Also just took a look at Active Inputs out of curiosity, it doesn't look like there is a way I can toggle the menu when pressing "i", as I can now. Is this accurate, or might I be missing something?

    I am hoping to stick with "On Input Key" since it allows for that flexibility!

  • You'd need to switch over to Active Inputs for that flexibility built-in - an Active Input can be made to respond to the "i" key, and then turn on the Menu (or off, if already on).

    The default interface does something similar with the Pause menu - you can run the New Game Wizard to see it working in a new game.

    Otherwise, you'd need to rely on a script to clear the Menu's Toggle key field. You can get an API reference to it by right-clicking the field's label - see this tutorial for more on how to manipulate Manager fields at runtime (the last note about resetting things upon restarting can be ignored in the case of Menus).

  • Awesome, went ahead and went with the script approach -- this helped a lot, 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.