Combat relocking

Apologies if this has been been mentioned before, but I couldn’t find anything.

When something comes close, my guns will activate. If I run away, and into something else, I’m unable to target it. Does anyone know a way to reset the target?

Click on the something else.

Press tab or click on the new target.

D’oh. Thank you.