Can't Cast to Blueprint

Hiya. Let’s see if we can get you going. What you have up there is not really the right approach to what you want to achieve. Consider the following:

  • a widget with a progress bar and a single event that updates it, nothing else:

image

  • the player blueprint has a widget component that spawns a widget for us:

A single event counts air and updates the widget.

edit:
image

{we lose 5 air units 30x per second}

  • the space air pod:

We step into the pod, we get air. The Event Dispatcher:


This is just one way to approach it from an OK angle. It can still be improved. But now we can place air replenishing actors all over the map and stepping into them gives us air back:

Project link - sometimes seeing it in person is nicer than screenshots:

1 Like