Announcement

Collapse
No announcement yet.

Trying to lock player input in Top Down template.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to lock player input in Top Down template.

    I am trying to lock the player input in the Top Down template.

    I have nodes setup to disable, and enable input based on entering a volume, and following a delay.

    It does does not appear to be working.

    This is what I want to have happen.

    1) Player enters volume
    2) Players movement is stopped (working)
    3) Players input is locked (not working)
    4) Player is teleported (working)
    5) Player input is restored

    Any help would be greatly appreciated!

    Click image for larger version

Name:	Screenshot (1).png
Views:	1
Size:	472.5 KB
ID:	1141120

    #2
    You could try activating/deactivating your players movement component.

    From your 'Get player character' cast to your character, then from that you can activate/deactivate its component.
    Ben Halpin - Lead Developer - Lazy Games
    Overdosed on Early Access: Overdosed - A Trip To Hell
    Give a 'like' on fb: https://www.facebook.com/Properlazygames Give a 'follow' on twitter: https://twitter.com/ProperLazyGames And why not check out www.lazygames.org

    Comment


      #3
      The easiest way to do it would be to simply go into all the movement buttons are in the BP and after the input action / axis event fires do a Branch for "Allow Input?" and connect everything to the true. Then, when you want to take control away, just set "Allow input" to false and the player won't be able to move the character!
      KITATUS
      "Information shouldn't be behind a paywall, It should be free for all!"

      Comment


        #4
        Just get the player controller and set the cinematic mode to true.

        Comment

        Working...
        X