Announcement

Collapse
No announcement yet.

Lock Y-Axis Looking in Blueprint

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

    Lock Y-Axis Looking in Blueprint

    Hello,

    I want to lock Y-Axis looking. So that moving mouse to up or down won't work and player can look only left or right. How can I do that?

    Thank You!

    #2
    Do you want to deactivate it temporarily or disable it completely?

    For the former you need to use a boolean in your Camera movement logic that disables the Y Axis in your Input
    For the latter simply remove the Y input from your game.

    Comment


      #3
      Hello,
      I want to deactive it temporarily. Which blueprint should i use?

      Comment


        #4
        Your pawn/character, where you control the camera

        Comment


          #5
          Here is my blueprint. Click image for larger version

Name:	55.PNG
Views:	1
Size:	188.6 KB
ID:	1128908
          Attached Files
          Last edited by emreonder; 05-31-2017, 03:29 PM.

          Comment


            #6
            Originally posted by emreonder View Post
            Here is my blueprint. [ATTACH=CONFIG]143247[/ATTACH]
            Add Controller Pitch Input needs a value in order to rotate your pawn every frame, if you always send it zero, you won't lookup.

            Said that, you would add a logic to turn the axis value to zero whenever you want to block the pitch rotation (basically what Raildex is saying).

            Comment

            Working...
            X