xboxlive_user_is_guest


Description

This function will return true if the given user ID pointer is a guest user and false if they are not. You can get a User ID pointer with the function xboxlive_get_user().

IMPORTANT! This function is only valid when exporting using the UWP target for the Xbox One and it requires you to have checked the Enable XBox Live option in the UWP Game Options.


Syntax:

xboxlive_user_is_guest(user_id);

Argument Description
user_id The ID pointer of the user to check.


Returns:

Boolean


Example:

if xboxlive_user_is_guest(user_id[0])
    {
    global.user_name[0] = "GUEST";
    }
else
    {
    global.user_name[0] = xboxlive_gamedisplayname_for_user(user_id[0]);
    }

The above stores the activating user ID pointer in a global variable