Think this will return true even when the object is occluded and/or the player happens to look in that direction from any location?
IMO, it’s better to use the same trace used in a generic interact system—one that highlights objects the player is directly looking at and can interact with. The object itself only needs an interface to be executed when the pawn checks if it’s interactable.
This can even be handled by a component attached to the pawn, running at a lower tick rate:
• Get the camera manager’s current world location and direction.
• Perform a trace filtered by class.
• On a valid hit, add the item ID to the save game (or wherever it’s needed).