Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Event Dispatcher for weapons i'm at a loss

Having problems with event dispatchers. I copied thinks i found in the forums following the steps. Far as I understand my character when should be basically yelling at any BP that will listen. And now my weapon once it is spawned should always be listening

I have checked with print strings that everything makes it to the event in the character (which seems to come back as an error that it accessed none after i exit play)

The weapon works perfectly using strings, i know that it sets all the varibles in the character (has weapon, weapon selected etc approriately) and accepts keyboard input to fire everything right.

So it's just not getting the FireRev event triggered....anyone know why or where i should look I would greatly appreciate it. Is there a step between these two blue prints that should hold something? like the level blue print or game blue print?

Product Version: UE 4.18
image-133086.png (27.6 kB)
image-133087.png (56.3 kB)
image-133088.png (25.8 kB)
more ▼

asked Mar 24 '18 at 02:29 PM in Blueprint Scripting

avatar image

43 4 4 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


In which BPs are those BP Codes located? My first thought is that you need a specific Target as Target Input.

I can present you one of my implementations of event dispatchers.


Im my GameInstance there is this function. Within the function there is this event dispatcher.

alt text

Within a Widget Actor there is the binding:

alt text

You can see that i have used the game instance as Target for the Binding. Maybe thats it what is missing.


gi-ed.png (65.2 kB)
wa-edbind.png (115.8 kB)
more ▼

answered Mar 24 '18 at 03:44 PM

avatar image

662 62 54 116

avatar image Cultusfit Mar 24 '18 at 10:01 PM

The event tick call to binding was in the characterBP as well as where it tried to send the event

The bind to is in a BP called RevolverWP. I had placed it on event tick as the tutorial had done it on BeginPlay but there were several posting about how spawned actors arent there when the call is made and so would not be able to be found/set up. As weapons would be switched often i figured refreshing it at each tick would cause the call to refresh.

I tried moving the call after the cast variable and now it is giving an error that it accessed none when it hits that variable. Was thinking maybe it had something wrong and tried to just use a cast to...but no object seems to work when i cast TO the weapons BP (which is why i started looking up event dispatchers in the first place). Its an actor with a mesh and scene component...yet no object seems acceptable when placed there...alt text

bpe.png (161.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question