Inverted distance between objects

It’s a bit overkill, maybe.

If I want to know the normalized distance from my blueprint to an actor:

Then to calculate

distance

closeup

And if you want it to be 1 by the time it gets to the cube, it’s just 1 - this.