EmpiresCommunity / Unreal-Empires-Project

4 stars 0 forks source link

Error spew when dead from the nametag widget #43

Open RoyAwesome opened 1 year ago

Trainzack commented 11 months ago

This issue should be fixed by commit 12ed9d. The widget now checks that the owning player's pawn is valid, otherwise it hides the widget. This means that upon your death, all other widgets are hidden because the player doesn't have a pawn anymore. Maybe there should be a deathpawn?

RoyAwesome commented 11 months ago

What do you need the pawn for? If it's a position, you can use the Player Controller's position when the pawn is dead, as the Player Controller is at the position the player is at when they lost their pawn, if I remember correctly.

Trainzack commented 11 months ago

I didn't know that the controller stored position. I've corrected this in the most recent commit, so you should still be able to see the nametags even after death.

RoyAwesome commented 11 months ago

right on! Yeah, the controller is attached to the pawn on possess, and just kinda... stays at it's last spot when it unpossesses. It's why your camera stays at the last view spot