Announcement

Collapse
No announcement yet.

Event Dispatchers dont work

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

    Event Dispatchers dont work

    Hi.

    I try to establish the communication between 2 blueprints, but it does not work.

    I followed this tutorial, but i don't know what i'm doing wrong.

    https://forums.unrealengine.com/deve...lained-finally.

    Both actors are place within the level.

    Thanks



    #2
    does the overlap even occur?
    Make sure your Collision settings are both set to overlap

    Comment


      #3
      I get the message that a collision has occurred.

      This is just an example of how I tried to establish communications in between Blueprints

      but no matter what I try, the binding event will not fire.

      I think my problem are the references.

      But I do everything as described.


      If try "Get player Character" as Reference it works.

      But a variable as Reference to the same character did not work.

      Why?

      Attached Files
      Last edited by Savagee25; 04-11-2018, 08:57 AM.

      Comment


        #4
        It didn't work because Reference to the character is EMPTY. You cannot just add a variable with the type of the desired actor.
        What if there are 5 Third Person Characters in game? Engine doesn't know to which specific character variable is referring to until you set it.

        You are on the good path though. You can set up a proper reference on BeginPlay event and use it later.

        Back to your original question. Event isn't fired because reference is empty (the one you are trying to bind event to). I reckon error should pop up when you end playing in editor.
        Click image for larger version

Name:	ReferenceOnBeginPlay.png
Views:	76
Size:	79.8 KB
ID:	1459046

        Comment


          #5
          Thanks it Worked.

          I have another question. How do I communicate with a widget within another Blueprint Actor.

          My widget is directly in the level as an interactive screen through this actor, but I can't create a reference to this widget.

          Comment


            #6
            The solution of exadi is plain wrong.

            In your overlap Event, drag off "Other Actor" and cast it to your Third Person Character and set your variable from there.
            You don't need a separate reference to it.

            Comment


              #7
              thanks Raildex, I got that problem on top. But I can't get an interaction between 3d widget and another blueprint.

              How do I make the Reference between them?

              my event Dispachters only work if I access the widget via Add to viewport, but if I interact with it via another actor within the level nothing happens.

              Comment


                #8
                Here's a thorough video on blueprint communications:

                https://www.youtube.com/watch?v=EM_HYqQdToE

                Comment

                Working...
                X