Display username above player?
Hello, I am on the last part of my game and that is add the name tag above the players head to identify him/her. I have a login system with mysql where you can go to my localhost and register a username and password required to get into the game. what I want to do is display that registered username above the player. I've tried making a seperate widget component and binding a function (the users username is stored in a string varaibel) but when I add get username it asks for a target and I don't know what the target would be, Any help would be great!!?
asked Dec 31 '17 at 05:48 AM in Everything Else
Hey there, is that username variable in the widget? If it is and it already has the value it needs to have, delete that node and do get username to recreated it without the self. If it's not then you need to access the place it has that information, if it's in your character then you need to do get owning player pawn, cast to your character bp and from there access the variable.
answered Dec 31 '17 at 11:32 AM
I believe you can use a widget to get there text over the player
answered Dec 31 '17 at 06:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here