# Name of Game User
Grammar — Name of Game User gameUserId
Flags —Native
|Function
Returns the name of the Game User.
# Arguments
int
<preset::GameUserId> — GameUserId
Returns — text
native text GameUserName(int gameUser);
# Related
Category: Game User / Game User Settings
- Name of Game User —
text
— GameUserName - Handle of Game User —
string
— GameUserHandle - Triggering Game User —
int
<preset::GameUserId> — EventGameUser
# Examples
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:104
if (auto699398C7_val == 0) {
TextExpressionSetToken("Param/Expression/lib_Lbty_8E0C96E8", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_8E0C96E8", "PLAYER", GameUserName(lp_gameUser));
UIDisplayMessage(lv_pingPlayers, c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_8E0C96E8"));
lv_pingSound = SoundLink("UI_PingAdvanced_Attack", -1);
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:114
else if (auto699398C7_val == 3) {
TextExpressionSetToken("Param/Expression/lib_Lbty_6846955F", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_6846955F", "PLAYER", GameUserName(lp_gameUser));
UIDisplayMessage(lv_pingPlayers, c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_6846955F"));
lv_pingSound = SoundLink("UI_PingAdvanced_Defend", -1);
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:124
else if (auto699398C7_val == 2) {
TextExpressionSetToken("Param/Expression/lib_Lbty_F9C18C18", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_F9C18C18", "PLAYER", GameUserName(lp_gameUser));
UIDisplayMessage(lv_pingPlayers, c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_F9C18C18"));
lv_pingSound = SoundLink("UI_PingAdvanced_Retreat", -1);
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:134
else if (auto699398C7_val == 1) {
TextExpressionSetToken("Param/Expression/lib_Lbty_273AE718", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_273AE718", "PLAYER", GameUserName(lp_gameUser));
UIDisplayMessage(lv_pingPlayers, c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_273AE718"));
lv_pingSound = SoundLink("UI_PingAdvanced_OnMyWay", -1);
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:190
if ((EventPingUnitIsUnderConstruction() == true) && (VisIsVisibleForPlayer(lp_player, lp_pingTargetPosition) == false)) {
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "PLAYER", GameUserName(lp_gameUser));
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "ENEMYID", IntToText(lp_pingTargetOwner));
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "ENEMY", PlayerName(lp_pingTargetOwner));
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:198
else {
TextExpressionSetToken("Param/Expression/lib_Lbty_2B377E06", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_2B377E06", "PLAYER", GameUserName(lp_gameUser));
TextExpressionSetToken("Param/Expression/lib_Lbty_2B377E06", "ENEMYID", IntToText(lp_pingTargetOwner));
TextExpressionSetToken("Param/Expression/lib_Lbty_2B377E06", "ENEMY", UnitTypeGetName(lp_pingTargetType));
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:212
else if ((libNtve_gf_PlayerIsEnemy(lp_player, lp_pingTargetOwner, libNtve_ge_PlayerRelation_Ally) == true)) {
TextExpressionSetToken("Param/Expression/lib_Lbty_87A7C4FB", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_87A7C4FB", "PLAYER", GameUserName(lp_gameUser));
TextExpressionSetToken("Param/Expression/lib_Lbty_87A7C4FB", "ENEMYID", IntToText(lp_pingTargetOwner));
TextExpressionSetToken("Param/Expression/lib_Lbty_87A7C4FB", "ENEMY", UnitTypeGetName(lp_pingTargetType));
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:225
else if ((CatalogFieldValueGet(c_gameCatalogUnit, lp_pingTargetType, "ResourceState", c_playerAny) != "Unknown")) {
TextExpressionSetToken("Param/Expression/lib_Lbty_ED0924D6", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_ED0924D6", "PLAYER", GameUserName(lp_gameUser));
UIDisplayMessage(lv_pingPlayers, c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_ED0924D6"));
lv_pingSound = SoundLink("UI_PingAdvanced_OnMyWay", -1);