Announcement

Collapse
No announcement yet.

why LeftMouseButton event doesn't work?

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

    why LeftMouseButton event doesn't work?

    In the attached screenshot, if i use EventTickso print works fine. But in case with LeftMouseButton print doesn't work.
    Attached Files

    #2
    Maybe you need to enable user inputs in your blueprint

    Comment


      #3
      Block input checkbox is unmarked.

      Comment


        #4
        Did you set your project to be for tablet? You might have "use mouse for touch" enabled and if so it counts as touch

        Comment


          #5
          I use topdown template. Enable Touch Events is on.

          Comment


            #6
            Can you put a breakpoint on GetAiController and see if it fires?

            Comment


              #7
              Not fires.
              But EVentTick is firing.

              Click image for larger version

Name:	ice_screenshot_20170306-191240.png
Views:	1
Size:	48.1 KB
ID:	1124405

              Comment


                #8
                Yes, it's quite normal that Tick fires Can you try to "plug" the click event to the GetAIController node and see if it stops as it does with tick with the breakpoint set?

                Comment


                  #9
                  Yes, i tried, with LeftMouseButton event doesn't work.

                  Comment


                    #10
                    Screenshot

                    Click image for larger version

Name:	ice_screenshot_20170306-193555.png
Views:	1
Size:	36.7 KB
ID:	1124406

                    Comment


                      #11
                      I've seen Inputs not fire outside of PlayerController before: (Special Left/Right).
                      Where does the code reside atm, would it be much work to run a test from PC?
                      So hook up a Custom Event from PC back to the blueprint shown here above etc.
                      ----------------------------------------------------------------------------------------------------------
                      What are the BEST Unreal Tutorials / Docs? There are none tbh... Here's why
                      Instead its better to just take projects apart (see the free 'creators' listed here)

                      Comment


                        #12
                        franktech, do you mean to create custom Event mouseClick?

                        Comment


                          #13
                          Originally posted by qwaqwe View Post
                          franktech, do you mean to create custom Event mouseClick?
                          Connect the unconnected 'Left Mouse Button' node to a Print String Node etc...

                          Anything... Nothing?

                          Connect a 'Left Mouse Button' node to a Print String Node in PlayerController.

                          What happens???
                          ----------------------------------------------------------------------------------------------------------
                          What are the BEST Unreal Tutorials / Docs? There are none tbh... Here's why
                          Instead its better to just take projects apart (see the free 'creators' listed here)

                          Comment


                            #14
                            In Player controller it works fine.

                            But in bot(AI) controller it doesn't work.

                            Comment


                              #15
                              What i want to do, when character start to move by click and diff. events happen like door closed\opened, bot start to move etc.
                              Last edited by qwaqwe; 03-06-2017, 03:38 PM.

                              Comment

                              Working...
                              X