I have created a custom event and am trying to call this event via the level blueprint. The actual event is in the Player BP. But it doesn’t work.
So when i try to connect them, it says: Characater Object Reference is not comptible with Minimal Default Object Refenrence.
*“Minimal Default” is the map
I think you’re using a blueprint interface there, right? In which case you need to specifiy the actor you’re calling it on:
But, if you have a reference to the player, you might as well just do it with a normal event, like:
Either is fine, of course. But BP interfaces are more for when you have a variety of actors, and you want them all to respond differently to a given sort of call.
You need to have an event in that character with that name. Do you have that?
Yas! …
Yeah, it’s trying to send a message to the level BP…
Take the character ref, pull a pin off and look for ‘headlighttoggleevent’, it will be the one with (message) after it.
Sorry i don’t quite unrderstand what i need to do?
Start with the getplayercharacter node. Pull the pin from it and search for ‘headlighttoggleevent’
Just like the first pic above. You can’t start with the event, cause it doesn’t know which version to call, so you have to start with the player character node.
No, I haven’t
Ooohh. I got it now, i had to create an event in my player bp, and not in the level bp. Thanks for your help and patience!
Just a quick clarification: it seems to me that you have created a literal event in the event dispatcher, and a custom event in the event graph with the same or similar name.
When you “Call” the event (notice the “call” word in the node title), you call the event created in the dispatcher. But your function is actually tied to the custom event created in the graph. These are different types of events NOT connected to each other, but I see how that might be confusing.
The events created in the dispatcher can not be executed as functions; they are mere notifications that other blueprints can listen to. From what I see in your BPs, you don’t need those events right now. You need a custom event created in the event graph, and you can execute it after casting to your character type.