{"id":1070,"date":"2022-05-24T00:34:45","date_gmt":"2022-05-24T00:34:45","guid":{"rendered":"https:\/\/lucyestela.com\/dev\/?p=1070"},"modified":"2022-05-24T00:35:30","modified_gmt":"2022-05-24T00:35:30","slug":"unreal-event-dispatcher","status":"publish","type":"post","link":"https:\/\/lucyestela.com\/dev\/unreal\/unreal-event-dispatcher\/","title":{"rendered":"Unreal Quick Tip &#8211; Event Dispatcher"},"content":{"rendered":"<div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<p class=\"\">I needed to set up an Event Dispatcher in an Actor BP to call a function in my Level Bp so here are the steps you take to do this. There were posts around about DO NOT DO THIS, but I have a very simple file and all the level is doing is setting up my Multiplayer Host and Client Sessions and then it loads the game level &#8211; which is also a very simple file, so I think it will be ok. Don&#8217;t burn me.<\/p>\n<p class=\"\">In my Actor BP I created an Event Dispatcher called <strong>JoinEventDispatch<\/strong><\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1071 size-full alignleft\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher1.png\" alt=\"\" width=\"382\" height=\"89\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher1.png 382w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher1-300x70.png 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher1-250x58.png 250w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">And called <strong>JoinEventDispatch <\/strong>from a function when required<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1072 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2.png\" alt=\"\" width=\"897\" height=\"252\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2.png 897w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-300x84.png 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-768x216.png 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-250x70.png 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-550x155.png 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-800x225.png 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher2-641x180.png 641w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Then in my Level BP on the <strong>EventBeginPlay<\/strong> node I bind what I want to happen. BPWidgetInfo is my Actor BP where I defined called JoinEventDispatch above.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1073 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3.png\" alt=\"\" width=\"760\" height=\"290\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3.png 760w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3-300x114.png 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3-250x95.png 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3-550x210.png 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/05\/dispatcher3-472x180.png 472w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I needed to set up an Event Dispatcher in an Actor BP to call a function in my Level Bp so here are the steps you take to do this. There were posts around about DO NOT DO THIS, but I have a very simple file and all the level is doing is setting up &#8230; <a title=\"Unreal Quick Tip &#8211; Event Dispatcher\" class=\"read-more\" href=\"https:\/\/lucyestela.com\/dev\/unreal\/unreal-event-dispatcher\/\" aria-label=\"More on Unreal Quick Tip &#8211; Event Dispatcher\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[59],"tags":[124,125,123,126,45],"class_list":["post-1070","post","type-post","status-publish","format-standard","hentry","category-unreal","tag-blueprints","tag-communication","tag-dispatcher","tag-quicktip","tag-unreal"],"_links":{"self":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/1070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/comments?post=1070"}],"version-history":[{"count":2,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/1070\/revisions"}],"predecessor-version":[{"id":1076,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/1070\/revisions\/1076"}],"wp:attachment":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/media?parent=1070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/categories?post=1070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/tags?post=1070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}