steam_get_persona_name

Get the name of the user currently logged into the Steam client.

Syntax:

GML Code Example

steam_get_persona_name();


Returns: String


Description

You can use this function to return the user name of the user currently logged into the Steam client. This is the visible screen name and not the unique user id (this can be found using the function steam_get_user_steam_id).


Example:

GML Code Example

if steam_initialised()
    {
    global.p_name = steam_get_persona_name();
    }
 

The above code will set a global variable to current users screen name if the Steam client API is correctly initialised.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here