Announcement

Collapse
No announcement yet.

Disabling character movement

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

    Disabling character movement

    Hi there!

    Is there any way to disable character movement through a blueprint? I haven't seen anything related to that in the forums.
    In UE3 you could just use IgnoreMoveInput, but I don't see such a function in UE4.

    Thanks in advance.
    Last edited by Keytotruth; 06-08-2014, 02:15 PM.

    #2
    Hi Keytotruth,

    The short answer is yes, but the long answer is yes depending on what you are trying to do! Blueprints are a very powerful tool and you can set up many aspects of your game through them, though if you have a button designated for movement that you do not plan on using (for instance, in a side scroller you may not want to turn left and keep them moving to the right instead), you can go into the axis bindings of the project settings and simply remove it from the list. If it is more of a temporary situation you can change the movement value to 0 so that your players forward or right vector will not update for a period of time. There are several options available to you to affect movement.
    Adam Davis | Marketplace Support | Epic Games
    How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

    Comment


      #3
      I need more the latter. I want to make it so the player cannot move during a certain animation.
      How can I set the forward/right vector to zero?

      Comment


        #4
        You can access the player controller and use the blueprint node Set Ignore Move. This will disable movement, you just need to re-enable the movement about the time the anim is done.

        Comment


          #5
          Thank you very much. That worked perfectly!

          Also, do you guys know if it's possible to restrict the axis for root bone motion for animations or montages like in UE3? I really need this feature. I don't mind if it's through code or something, but is it possible?

          Comment


            #6
            This seems to work: https://www.youtube.com/watch?v=6_sn34jLbBU

            Comment

            Working...
            X