New to coding and UE. This is my first blueprint code. Can someone help me improve it? Thx in advance

I’m pretty sure there are better ways to achieve the same result. But this is all I managed to do with my noob programming skills.

It’s pretty simple. The goal is to have the HP variable oscillate between 0 and 100.

Basically to make your code “better” you can add functions that increase and decrease the health

Something was stuck in my mind I wanned to check your screenshot once again, I realized you also have the value oscillate like you said. You can use the finterp node for that instead of gradually increasing / decreasing the value using operators