Setting up resource node health

Hello again,
I am currently in the process of creating a resource node that will gather resources when a certain ai is near it. Right now I am having trouble figuring out how to have the node get smaller when its health hits a certain number. Ive tried a number of things and I cant seem to get it to work. I guess my biggest problem is wrapping my head around storing health data and using it else where in a function or event graph. Once I can do that my problem is pretty much solved. I’m new to blue printing and I am trying to learn through discovery. Any help would be greatly appreciated.
Thanks in advanced,
-Mr.Pwndabear

anyone have an idea about this? Bump?

Just put a “Health” integer variable directly on the blueprint actor. When the AI is draining it’s health you want to cast to the actor and just minus it’s health. Personally I would use a custom event to do this and then you would just set its scale based on it’s health.

I got the health to calculate and store, now im having problems with a health bar for the node. I cant seem to get the health bar to show max health then decrease as it takes damage.

In your HUD just use the progress bar and it should have a value for max so set that to what your max health should be. Then when the health changes cast an event over to your HUD and update it with the new health value that you calculated