Announcement

Collapse
No announcement yet.

Is there a way to disable a certain input in certain areas of a level?

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

    Is there a way to disable a certain input in certain areas of a level?

    Like being able to disable the "P" input that pauses the game . Just in certain areas though , like a volume would do? Like with an overlap and box collision so it could be a separate blueprint I could set in the level. Its not too hard to disable all input in the collision box with the "disable input" node, but just a certain one is different. Tried something like this but no work. Click image for larger version

Name:	Input.png
Views:	285
Size:	336.4 KB
ID:	1537404
    Last edited by razmaz51; 10-08-2018, 11:39 PM.

    #2
    The bool needs to be on the player blueprint and then you can set the bool in your overlapping volume actor blueprint (you can reference the bool with the cast node you already have here).
    Last edited by NotSoAccurateNo1; 10-09-2018, 01:59 AM.

    Comment


      #3
      I added the bool to the character bp. Tried several different setups , notta work , What am I doing wrong. Click image for larger version

Name:	can-recieve-input.png
Views:	150
Size:	411.7 KB
ID:	1537755

      Comment


        #4
        none work. Click image for larger version

Name:	input.png
Views:	202
Size:	410.6 KB
ID:	1537758Click image for larger version

Name:	input2.png
Views:	184
Size:	368.6 KB
ID:	1537759

        Comment


          #5
          The first image is closer to what you need. The next thing is to add a branch to the player blueprint's P input execution line and check the boolean there instead of here. You don't need the disable input node; the branch and boolean should be enough.

          Comment


            #6
            you mean the very first image (original post)? if I put the branch and Boolean in the player bp P line, will it still work with this overlap box blueprint so I can set it in certain areas of levels? thanks

            Comment


              #7
              when I put the branch and Boolean in the player bp pause input. then pause just doesn't work anywhere at all.

              Comment


                #8
                Ok I got it man , thanks for your help.

                Comment

                Working...
                X