Changing float for "Get Foward Vector" later in code

So I’m pretty stuck here so I thought someone might be able to help me here.

This is the current code I’m using for checking where the play is looking and if they can teleport/interact.

Currently there is just one check of distance right at the start. I want to have it so that if the teleport check fails and we start looking if we can interact, the distance the game is now checking gets drastically reduced just for this interact check, then goes back to normal.

Haven’t been able to figure out a way to do this yet.

If i am understand you right, you want to Change your gaze fistance float? If yes, you can set this value to the value what you want if your check Fails. Then, after the next check, set it to the Default value.

I tried originally doing this, but the gaze length at this point at time had already been “used” and changing it this late in the code would do nothing. I can’t really visualize how I would do exactly what you’re saying though as this all needs to happen on a single click, and as far as I can tell that only gives me a single check.