edited April 2014 in ORK Scripting
Hi,
I want to disable the Main Menu Access by input key (Escape for example) when executing some GUI scripts and reenable it at End.

Thanks.
Post edited by iglander on
  • That can be done in two ways:

    Use a requirement in the menu screen (e.g. with a game variable condition) by enabling Use Requirement and setting one up in Game > Requirements and set the game variable whenever you want to allow/block access.

    Block the input key - either through the event system or using the following code:

    ORK.InputKeys.Get(int index).Blocked = true;

    index is the ID of the input key.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.