Hello,

I need to disable (and enable) the player control via script. I've managed to do it for player movement, but not for controling a menu, can this be done?

Best regards
  • Calling menus is already blocked if the player control is blocked.
    Did you use this to block the player control?
    Maki.Control.SetBlockPlayer(1, true);
    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!
  • Hello,

    Sorry for not specifying, I'm working on ORK2.

    I don't understand the reply, I didn't use that line, maybe because I'm working on ORK2.

    The line I used was

    ORK.Control.PlayerControlType = PlayerControlType.None;
  • In ORK 2 it's pretty much the same, just calling it on ORK:
    ORK.Control.SetBlockPlayer(1, true);

    What you're doing is switch the player control. While switching to a None player control still 'blocks' the player from controlling the movement, the player control isn't really 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!
Sign In or Register to comment.