Announcement

Collapse
No announcement yet.

Event dispatcher not working

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

    Event dispatcher not working

    I'm trying to set a message from my player blueprint to a widget:

    Player bp
    Click image for larger version

Name:	1.JPG
Views:	1
Size:	42.8 KB
ID:	1220267
    Click image for larger version

Name:	2.JPG
Views:	1
Size:	12.4 KB
ID:	1220268

    Widget
    Click image for larger version

Name:	3.JPG
Views:	1
Size:	96.0 KB
ID:	1220269

    What I'm doing wrong??

    Thanks

    #2
    Your 'Cast to Character' probably fails. Try adding a print to see which output it goes on.

    And I would change the name of the dispatcher as I'm unsure Unreal supports "[]" and spaces in Dispatchers' name.
    [Released] Multiplayer Combat Editor
    A-RPG Sacred Swords
    Auto-Chess Live Development
    Youtube Tutorials

    Comment


      #3
      If the cast is failing, it could be due using the cast in the construction script. Since the construction script runs when an object is created, its possible its happening before the player object exists, thus the cast will fail. You can try moving it to EventBeginPlay in the event graph if that is the case.

      Comment

      Working...
      X