Long story short, I have special keyboard behaviors that I need to toggle depending on game state. Specifically the current state of "BlockPlayerControls"

would someone be able to help me with the scripting call to check the current status of if Player Controls are Blocked. I looked over the API but only managed to dig up the BlockPlayerControls: Step

For Example, I would like to be able to check if

if (BlockPlayerControls == true )
{
blah blah
}
else if (BlockPlayerControls == false)
{
blah blah
}

Once I can tap into that , the rest is cake.

Thank you ahead of time. If this is not possible maybe a way to access current game state via scripting.


  • Here you go :)

    if(ORK.Control.Blocked)
    {
    // controls blocked
    }
    else
    {
    // controls not blocked
    }
    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!
  • Thanks so much! Works like a charm.
Sign In or Register to comment.