How can make a spotting blueprint, to spot enemies in an fps game

Hi guys

i was wondering if i could learn how to make a spotting blueprint, to allow players to spot enemies with the Q key, like in Planetside2. So for example i hover my cross-hairs over the enemy, then I press Q, and a HUD system appears with the enemy’s health and their name.

HI

Of Q, run a line trace. From that you will be able to get Character Info.

When you get the info, Add widget to viewport. populate the data you need.