Hi, I’m having a issue trying to call a event that is in the HUD blueprint to my Character blueprint, I’m pretty new to blueprints as I usually work in the design and art not in codding. I’m pretty confuse of what I did wrong or how to call that event. Any help?
You mean like the HUD blueprint class? Or do you have some other blueprint (like a widget of some sort) that you are using as your HUD?
In order to get an event out of a HUD blueprint class when you are in your character, you need to use the Get Player Controller node → Get HUD node → Cast to (the name of your HUD here) → pull off the pin of the cast and there should be an option to call your event.
However, it should be noted that use of a HUD type blueprint is a bit outdated and most people just use widgets instead now.
Oh sorry for not being clear, the HUD is on a widget not a HUD blueprint. As I said before I’m new on blueprints.
Ah. In that case, all you have to do is have a variable of the widget inside your character and then pull off of it to call the event.
If you created the widget inside your character blueprint, then this is really easy because you can just promote the output of the create widget node into a variable. If you created the widget somewhere else, you need to promote it to a variable wherever you created it and then cast to that other blueprint inside your character to access the widget.
oh… It was actually easy xD Thank you a lot for the help