Help with Blueprint – Object Moves Toward Player Only While Moving, Resets on Idle

Hi everyone,

I’m trying to create a Blueprint in which an object (like a cube) always stays in front of the player and only moves closer when the player walks forward. If the player stops moving for a few seconds, the object should reset to its initial distance. Does anyone know how to approach this? I’ve already placed an object relative to camera in firstpersoncharacter blueprint, but it’s always the same distance, no matter the character movement. Ideally I want to achieve effect where character has to move to a certain point and when reaches it, object (in this example pointcloud of a photoscanned trail) becomes stationary. I’m quite new to Unreal and any help would be appreciated :smiley: