Player size in a corridor

I am looking for a way to have the player walk down a corridor and be smaller at the other end, and if they turn around to be the full size at the beginning. - see picture 1.

I’ve managed to do it with a blueprint on a collision box - see picture 2 - however it will only work when the player is going in and out of the collision box. I would like it to scale according to the player’s position in the corridor.

Any suggestions and help are appreciated.

Thank you in advance.

You need to do it on tick. The player scale is related to how far along the corridor they are.

That or use the result of a trace off the character’s capsule (the origin is the center usually).