Hi Chris!
Thanks for posting, I hope me or someone else here can help you out.
Usually, you could have a blueprint related to the player pawn or another pawn, and use the blueprint script associated with it to contain some logic.
As far as the crosshair idea goes, sounds cool! If you don’t want to mess with the camera distance, you could try using a collision box, and have an event fire whenever the box overlaps with a specific object. Here is a video example: https://www.youtube.com/watch?v=5-UJT4U-jeg.
However, if you want to calculate distance from the camera to an object nearby, my first attempt would probably be to:
- Add a collision box and fire an event when it overlaps with an object
- Then check if the object is close enough using a distance function: Get Distance Between Two Points? - #4 by RobMeade
Play around with these ideas, and let us know how it goes! No rush.