Gets the players info when clicking on someones character (similar to World of Warcraft)

Hello. I’m trying to get a specific player info when clicking on the persons character, similar how it works in World of Warcraft. So i would get health, name and level on the person I click on.

I dont really have it started except the clicking on the character. I’m wondering how i could do, I have tried so many things.

Maybe create a struct with all the details that is common for everyone, like name, health etc.
And then cast to the character that will hold this data and display it.

I have a structure that is called PlayerInfo. But I dont really know when and where to put in all the information.

onclick with a line trace for actor with a specific tag.
Use the structure to update your widget information.
display the custom widget.