Announcement

Collapse
No announcement yet.

Returning movement and disabling interaction

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

    Returning movement and disabling interaction

    Hi guys. I'm trying to make a 'Take' button within the widgets for each of my diary pages around the map. Once the player hits 'Take' I want the diary page to disappear and return the players interaction and movement to normal.
    I've tried following advice from this tutorial but I couldn't seem to get it to work. http://bit.ly/2n6OLt7
    Any suggestions?

    Click image for larger version

Name:	help2.png
Views:	1
Size:	253.4 KB
ID:	1213081
    Click image for larger version

Name:	help2.5.png
Views:	1
Size:	185.2 KB
ID:	1213082
    Click image for larger version

Name:	help2.75.png
Views:	1
Size:	166.7 KB
ID:	1213085
    Click image for larger version

Name:	buttonhelp.png
Views:	1
Size:	629.0 KB
ID:	1213084

    #2
    Seems like an over complicated setup/tutorial you are following . But I am not here to judge, but help.
    Here is a little video I made, how you can give the player movement back:

    https://vid.me/n6I1

    For the issue that the diary page should dissappear, when you hit the button, this might help:

    Click image for larger version

Name:	a33ba59ed1934c43b12855f618cf9c10.png
Views:	1
Size:	167.1 KB
ID:	1124807

    It is the same graph from the widget in my video. I just added the "Remove parent" at the end.

    Hope it helps .

    Click image for larger version

Name:	0941ea46d6574e699e6178e70cb2712c.png
Views:	1
Size:	206.9 KB
ID:	1124806
    Last edited by DarkGodsLair; 03-16-2017, 01:47 PM.
    Main channel:
    https://www.youtube.com/channel/UCGC...o9s3YcA/videos

    Comment


      #3
      Im sure there are several ways to accomplish this. They way I did it on my inventory sytem (https://www.youtube.com/watch?v=Y839WJDSn6Y) is inside of the Player Character where the default character movement nodes are. You have input nodes (mouse movement and keyboard inputs) driving the player character movement. I put a branch node in between all of those, and checked a boolean variable ie: HasItemInHand. If it is false continue on to the default behavior of the player, if it is TRUE, that means you are looking at something in the UMG, and your keyboard and mouse wont do anything to the player character. Hope that helps. - Jerry
      Now available on the UE Marketplace: Inventory Examine Interface -- and -- Fifty Knobs and Dials -- and -- Thirty Buttons Pack -- and --Kitchen and Bath Handles for Arch Vis -- and -- Chat Bot A.I. Simulator

      Comment

      Working...
      X