Hi guys sorry this one is probably easy for most of you but I can’t seem to figure it out.
What I am trying to do is create a bar HUD for the player that detects the enemy based on distance.
The closer the player gets to the enemy the more the bar fills up.
Now I have a custom event that finds out the distance between the player and the enemy which is fine .
And I have another variable called fill variable which is clamped all I want to do is as ( distance decreases - increase fill variable ) or as ( distance increases - reduce fill variable)
So as the player gets closer to the enemy the fill variable will increase which will fill up the bar on the widget.
Thanks for you’re time