How to calculate screen coordinates of a character ?

Hello,

I’m trying to implement damage indicators for my game in UEFN .
I want a ui text to pop out when I damage an enemy, above such enemy.
To do that I think I need to calculate the on-screen position of the enemy character, but I have not found anything to do that so far.
Does anybody have any hint or info about how to achieve this?

You could do that but you’ll need to use Verse UI afterwards to display the damage, which means being limited to 30fps (when the server doesn’t lag)

I think you’ll be better off spawning a 3D prop with a sprite material that samples the cube scale’s decimals to display the correct number, it’s a commonly used technique and it works fine

Also, I don’t think you’ll be able to remove the default Fortnite damage HUD, maybe you want to double check that

NOTE: If you want the damage numbers to only show up for the damager player it’s gonna be a bit harder, maybe there’s a way to do it with switches

We already have the whole thing implemented in Verse UI , framerate is not an issue since it’s barely animated, and someone else took care of the default FN damage HUD.
I only need a way to properly position the UI elements on screen.

I wasn’t talking about animations but rather keeping the damage HUD positioned on top of the damaged character since the damager player can move its camera

I can’t share you any method to do that unfortunately, and there’s no native way of retrieving it

Then seems like we need to change everything to use 3D props instead :smiley:
Thanks for your help @im_a_lama

1 Like