Announcement

Collapse
No announcement yet.

How do gates actually work?

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

    How do gates actually work?

    I'm having a issue with my camera resetting part of BP. I want camera to reset when middle mouse button is pressed and released without moving mouse itself and I've mostly accomplished that already.

    My problem is that it actually resets camera when MMB is pressed instead of released.
    Click image for larger version

Name:	ghaHz.jpg
Views:	1
Size:	156.0 KB
ID:	1144958
    I'm having a hard time figuring out how to set that second gate up so it would work like intended. Or maybe is there much better solution?
    I have absolutely no programming background so I may be ignoring something oblivious.

    #2
    You can double click on them to see how they work in the inside ( just like you are making your own custom macro node ).
    Check out my game OldSchool Nightmare : http://www.indiedb.com/games/oldschool-nightmare

    Comment


      #3
      The basic way they work: "Enter" This is when you'd walk to the front door / Gate.

      Open = "The gate should be open when you walk to it" - Closed = "The gate should be closed".

      Exit = What's behind the gate.

      Say you were a Pizza delivery man, and they asked you to come in the house (While they are out) and put the pizza on the table. You "Enter" (Walk up to) the front door /the gate and "If they left the key on the porch" the door would be open, otherwise the door would be closed.

      Documentation for reference: https://docs.unrealengine.com/latest...ndex.html#gate

      What I would do is put a "Sequence" on "Right mouse button". The first thing it does is close the first game, Then put the code that's attached to the second gate to the "Then 1" of the sequence :>

      Also, Welcome to the forums! :>
      Last edited by KITATUS; 03-01-2015, 06:18 AM.
      KITATUS
      "Information shouldn't be behind a paywall, It should be free for all!"

      Comment


        #4
        Originally posted by KitatusStudios View Post
        What I would do is put a "Sequence" on "Right mouse button". The first thing it does is close the first game, Then put the code that's attached to the second gate to the "Then 1" of the sequence :>
        If I do that it resets the camera as soon as I let the button go which is not what I want it to do.

        Originally posted by KitatusStudios View Post
        Also, Welcome to the forums! :>
        Haha, thanks! I've been lurking here since the beginning though.


        I added some comments to make it more clear what I want to do and with what information.
        Click image for larger version

Name:	gi1mJ.jpg
Views:	1
Size:	249.9 KB
ID:	1067409


        Very oblivious fake edit: I actually managed to figure out a solution that meets all criteria while I was making this post
        Click image for larger version

Name:	gi3my.jpg
Views:	1
Size:	175.2 KB
ID:	1067413

        Thanks for help though!

        I have never really programmed or scripted before and I started with Blueprints only few days ago so every success no matter how small is very exciting!

        Comment


          #5
          You want to know how Gates work? Just ask Bill.

          Sorry.
          Easy to use UMG Mini Map on the UE4 Marketplace.
          Forum thread: https://forums.unrealengine.com/show...-Plug-and-Play

          Comment

          Working...
          X