Dynamic material based on player health

I have a player health system that I would like to connect to a dynamic material instance. At 100% health, the material is normal color. And when the health gets lower, my parameter for my color change turns a darker color. My parameter on my material instance is a vector parameter. So I thought about using a set vector parameter node, but that didn’t work. It doesn’t go down incrementally in relation to the health.

Currently the material instance changes the color on the first hit, but it needs to slowly get darker in relation to player health.

need to see the part where you change the color

You need to create it once on begin play, then change it here… using set vector parameter value.

335859-color.gif

I just got this working. Your setup works really well. Thank you!