Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Login above players head?

Hello everyone, I bought a blueprint system on the ue4 marketplace called "Advanced Social System" currently, Advanced Social System doesn't have a login/signup/account system so what it does is it has its own usernames for people who join which two of them are ninja and vanguard I believe and displays them above the player during gameplay. What I want to do is intergrate my existing login system with advanced social system, What I have is a mysql database and a web user interface with a register page using PHP to communicate with the database and to get into the game the user must register an account. but I cannot figure out how to display the MYSQL USERNAME ABOVE THE PLAYER instead of the default advanced social system one. The login username variable is stored in a game instance and it uses a ue4 plugin called Va Rest to communicate via Api's and mysql.

What i've tried already is making a widget and adding text and making a binding to make that text get the username but I don't know what the target would be:

alt text

I am fairly new to blueprints but have a decent understanding of them. Any help would be great. Thank you.

Product Version: UE 4.18
picture.png (90.8 kB)
more ▼

asked Jan 01 '18 at 12:23 AM in Everything Else

avatar image

56 1 6 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Epic has a built in PlayerName field in the PlayerState object. I find that this is a good place to put your username when you pull it from the database. I also have a Microsoft SQL database and a .NET Core Web API that I pull the username from upon login using JSON.

Then in the widget I grab the PlayerName from the associated PlayerState object and use it to set the text in the floating widget.

more ▼

answered Jan 02 '18 at 04:43 AM

avatar image

2.6k 62 27 281

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question