"Value Range" Setting for float variable not working

I am watching the UE4 BP course and in the Mars Marine section “handling player death” video it says to use the “value range” setting on the health variable to clamp the value to 0 - 100. When I do this however it has no effect. I can print the health value and it will go negative still. I can clamp the value manually in the BP, but it would be nice to have the option to let the setting do it for me, and understand why it is not working for me now.

1 Like

It looks like this is actually addressed a bit later in the lesson. It says to just use the clamp node instead. I am still curious about why the Value Range setting did not work, but I at least know that I did not do something wrong for now.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms