Announcement

Collapse
No announcement yet.

Need help with Trigger Box events (Multiple Widgets)

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

    Need help with Trigger Box events (Multiple Widgets)

    Hello there, I'd really appreciate if anyone could help me solve this issue I have, it's for a school project and I've been stuck on it for too long.
    What I need is being able to use the spacebar to activate a message box on each one of these numbered "squares".
    I've already made the widgets and by following this tutorial I was able to make the first one work fine, the player steps in, presses the spacebar and the widget activates.
    My problem is that apparently you can't have multiple trigger events like this all in the level blueprint,
    so when I try to activate a second or third message on squares 2 and 3, only the widget from the first one pops up.

    (https://www.youtube.com/watch?v=z6KmI_66Ut8&t=5s)

    Click image for larger version

Name:	unreal1.PNG
Views:	1
Size:	691.7 KB
ID:	1226934

    Click image for larger version

Name:	unreal2.PNG
Views:	1
Size:	256.9 KB
ID:	1226935

    First widget "Casilla1" from trigger box 1 is showing up when I try to activate trigger box 2.

    Click image for larger version

Name:	unreal4.PNG
Views:	1
Size:	171.2 KB
ID:	1226936

    I'm a total noob, sorry if I'm missing something important.
    There's very few people who know about Unreal Engine where I live and I basically depend on online tutorials and these forums. Thanks!

    #2
    Not a big fan of the level blueprint myself, I found it to be a pain in the butt in most cases. Blueprint classes is by far the best way to go, specially when you dive into deeper and more complex codes.

    Anyways, a quick fix to your problem here would be to add a sequence after the disable input node and link one output to your remove from parent and another to close the gate. That way, your space bar command will only fire from the trigger you're in. Like this : Click image for larger version

Name:	2017-08-20 (2).png
Views:	1
Size:	409.2 KB
ID:	1132704

    Comment


      #3
      Thanks a lot for your help, I really appreciate it! Thing is, now after pressing the spacebar once I get this error message:
      Click image for larger version

Name:	312432.PNG
Views:	1
Size:	140.3 KB
ID:	1132706

      So, I step in the first trigger box, press the button and the first widget does activate as intended, but the second one doesn't work at all even if I try to activate it first.
      This is the only message I get, any ideas?

      Comment


        #4
        Here's what I got after trying to replicate the blueprint in a new project. Same elements, two box triggers and two simple widgets.
        Click image for larger version

Name:	231432.PNG
Views:	1
Size:	118.1 KB
ID:	1132707

        Comment


          #5
          That's weird. I literally just recreated your blueprint and it works just fine for me. Can't really tell what went wrong in that first screen.

          The second screen though is missing a few connexions from your "create widget" to "remove from parent" and "add to viewport". Unless it was intentional ?

          If it still doesn't work, try restarting Unreal Engine. One of my BP once stopped working and when I restarted the engine it was working fine after it, for some reason.
          Last edited by GoyetteQC; 08-21-2017, 02:17 AM.

          Comment


            #6
            You're absolutely right, the blueprint works in a new project... probably was too tired to notice the missing connexions.
            Guess I'll just have to re-do the whole thing in a new project since I still have no idea what's going on with these errors,
            It's probably me just messing with stuff and not realizing it until something like this happens. Thanks again!

            Comment

            Working...
            X