# Handle Of Player

Grammar — Handle of player p
FlagsNative | Function

Returns a unique Battle.net identifier for the player that will persist between name changes.

# Arguments

  • int — Player

Returns — string

native string PlayerHandle(int inPlayer);

Category: Player / Player Settings

# Examples

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:13282

    for ( ; ( (auto459D12F5_ai >= 0 && lv_player <= auto459D12F5_ae) || (auto459D12F5_ai < 0 && lv_player >= auto459D12F5_ae) ) ; lv_player += auto459D12F5_ai ) {
        TextExpressionSetToken("Param/Expression/lib_PEB1_42D787D2", "A", IntToText(lv_player));
        TextExpressionSetToken("Param/Expression/lib_PEB1_42D787D2", "B", StringToText(PlayerHandle(lv_player)));
        TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_PEB1_42D787D2"), true);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18024

        StatEventAddDataString(lv_stat, "MapID", lv_mapID);
        StatEventAddDataInt(lv_stat, "PlayerID", lv_player);
        StatEventAddDataString(lv_stat, "PlayerHandle", PlayerHandle(lv_player));
        StatEventAddDataString(lv_stat, "WheelAction", lv_action);
        StatEventAddDataString(lv_stat, "HeroID", (UnitGetType(lv_heroUnit)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18176

        StatEventAddDataString(lv_stat, "MapID", lv_mapID);
        StatEventAddDataInt(lv_stat, "PlayerID", lv_yellingPlayer);
        StatEventAddDataString(lv_stat, "PlayerHandle", PlayerHandle(lv_yellingPlayer));
        StatEventAddDataString(lv_stat, "VoiceLineID", (lv_voiceLine));
        StatEventAddDataString(lv_stat, "HeroID", (UnitGetType(lv_heroUnit)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18252

        StatEventAddDataString(lv_stat, "MapID", lv_mapID);
        StatEventAddDataInt(lv_stat, "PlayerID", lv_sprayingPlayer);
        StatEventAddDataString(lv_stat, "PlayerHandle", PlayerHandle(lv_sprayingPlayer));
        StatEventAddDataString(lv_stat, "SprayID", (lv_spray));
        StatEventAddDataString(lv_stat, "HeroID", (UnitGetType(lv_heroUnit)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:648

        StatEventAddDataString(StatEventLastCreated(), "Controller", lv_controller);
        if ((PlayerType(lv_i) == c_playerTypeUser)) {
            lv_handle = PlayerHandle(lv_i);
            if ((lv_handle != "")) {
                StatEventAddDataString(StatEventLastCreated(), "ToonHandle", lv_handle);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:5244

        libCOOC_gf_CC_StatEventAddInt("PlayerIndex", lv_indexPlayer, libCOOC_gf_CC_StatEventLast());
        if ((GameIsOnline() == true)) {
            libCOOC_gf_CC_StatEventAddStr("PlayerHandle", PlayerHandle(lv_indexPlayer), libCOOC_gf_CC_StatEventLast());
        }