Announcement

Collapse
No announcement yet.

Assign the input of " Is Mouse Button Down"

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

    Assign the input of " Is Mouse Button Down"

    Hey guys,
    i actually started playing around with unreal engine 4 and i am stuck with a WhileLoop.
    I just want to repeat moving the static mech while the middle mouse button is hold down.
    My problem is: What has to be connected with the input of " Is Mouse Button?

    Click image for larger version

Name:	failure.jpg
Views:	1
Size:	171.5 KB
ID:	1147852

    Sorry if the question is too stupid.

    greets Ionix
    Last edited by Ionix1990; 04-09-2015, 06:59 PM.

    #2
    Im not any kind of expert btw too but i dont see any node you setting your mouse is pressed. Also if im not wrong You dont need a branch there or even a while loop.

    Loops also are very bad to use when you prees the a button or key action they mosty break cause the start to repeat the action thousands of time in a second and and the game get unresposive.

    I suggest you to do something like that.



    I just use to open a gate when the desired button is pressed. Use even tick on the gate entrance anc desired inputo on open close gate. You can also put an delay if you want to uppdate the function less frecuently.
    Like for example moving the mesh 100 units every second or so
    English/Spanish/Polish Speaker May i help?

    Comment


      #3
      If you really need it this way, you can use the PlayerController for this:



      Or you just use the Gate that terror grunt showed you.
      Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR

      My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
      (Including 100+ Pages Multiplayer Network Compendium to get you started.)

      Comment


        #4
        Hey terror grunt. Thanks for your super fast answer
        I've done it like this :

        Click image for larger version

Name:	gate.jpg
Views:	1
Size:	175.6 KB
ID:	1072274

        and it works like a charm

        thank you so much

        greets

        Ionix

        Comment


          #5
          Oh thank you eXi

          Well is it like i just used the wrong node ? Because " Is Mouse Button Down " awaits a pointer as input and your solution not :P

          I think i stay with the solution of terror grunt. But it is also good to see the syntax of other solutions to understand the blueprints.
          I just learned python and played a little bit with c# so i have a small amount of programming knowledge.


          greetings

          Ionix

          Comment

          Working...
          X