Announcement

Collapse
No announcement yet.

Top Down Get Widget when clicked and up close.

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

    Top Down Get Widget when clicked and up close.

    I'm using the top down template and I've been trying to figure out how to make a blueprint so when I click on an object my character will run up to it to have a widget pop up when at a certain distance.
    Anyone know how this can be done?

    Thank you.

    #2
    You can try by clicking on an actor get it's reference which you will pass into your character and in it by checking every tick if the target is valid and if is within some distance, if so then just create a widget.

    Hope it helps.

    Comment


      #3
      I'm sorry, I'm not entirely sure how to do that.

      Comment


        #4
        I'm Sorry, I'm not sure how to go about and doing this.

        Comment


          #5
          Or you can add overlapping collision to the pawn, ideally you'd have a unique object type but his will still work:

          Click image for larger version  Name:	sCol.PNG Views:	1 Size:	274.4 KB ID:	1529608

          And the Pawn can pop a widget like so:

          Click image for larger version  Name:	popwidget.PNG Views:	1 Size:	137.2 KB ID:	1529609

          Running up to objects is already included in the template so this just checks whether you're near something, not whether you've clicked on it. You did not mention widget position tracking, so it's not included.

          Good luck!

          Comment

          Working...
          X