Announcement

Collapse
No announcement yet.

How can I create a `Look Button´? A button that can be activated when I at look it?

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

    How can I create a `Look Button´? A button that can be activated when I at look it?

    How can I create this? I´ve been thinking this for some time, I can´t think of a simple way to execute this. I thought of using a single line trace, but I don´t know how to use the hit return node.

    Has anyone worked this out before?

    Cheers
    Musical Range VR | Musical Range Trailer | Pausing Game On Steam Overlay | Aperture Tag

    #2
    Hits are structs. Drag the hit pin off and you'll see "Break Hit"; use that to break the hit into its relevant child variables.

    Those are what you really need; for example, check if the hit component has a tag that identifies it as a look-at button, and if it does, cast to it and call an event on its BP that activates it, for instance.

    Comment


      #3
      like so: ?
      Free Inventory System (BP AND C++ Version): Clicky Clicky
      Player Structure System (Houses!) (BP): Pew Pew Marketplace Version: Yoink!
      Howto: Create Dragable UMG Windows: Zoom Zoom

      Comment


        #4
        Hello,
        look at tom looman's usable actor system (a linetrace to a blueprint with a begin focus end focus functions which work fine) you'll have what ruohki shown or :

        Comment


          #5
          Here is an official Epic tutorial on just that. https://www.youtube.com/watch?v=Wwfs...msfm_s4lb4-Tg0 It actually shows how to do it so you don't have to clutter up your code.

          Comment


            #6
            Thanks for the Info guys! I will check out all the posted info!
            Musical Range VR | Musical Range Trailer | Pausing Game On Steam Overlay | Aperture Tag

            Comment


              #7
              That was exactly what I was looking for!
              Musical Range VR | Musical Range Trailer | Pausing Game On Steam Overlay | Aperture Tag

              Comment

              Working...
              X