Looking for cleaner blueprint code ideas - restricting actors movement based on relative location

if(DistanceFromParent / MaxDistance) < 1)

DistanceFromParent / MaxDistance will give you a number between 0 - 1 as a ratio of the distance remaining to MaxDistance (e.g. 5/50 = .1 and 50/50 = 1) (10% / 100%)

Once you’re ratio is 1 you’ve traveled your maximum distance.