# Name Of Player

Grammar — Name of player p
FlagsNative | Function

Returns the name of the player.

# Arguments

  • int — Player

Returns — text

native text PlayerName(int inPlayer);

Category: Player / Player Settings

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L1230
PlayerName(gv_pLAYER_02_DOMINION)
// L1128
PlayerName(gv_pLAYER_09_ZAGARA)
// L1230
PlayerName(gv_pLAYER_02_DOMINION)
// L1128
PlayerName(gv_pLAYER_09_ZAGARA)

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L2744
PlayerName(libAMVS_gv_arti.lv_player)
// L2799
PlayerName(libAMVS_gv_arti.lv_player)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L4669
PlayerName(lp_player)
// L5835
PlayerName(libNtve_gf_KillingPlayer())
// L6633
PlayerName(libGame_gf_HeroKilledKillingPlayer())
// L10781
PlayerName(lv_casterPlayer)
// L10783
PlayerName(lv_targetPlayer)
// L10809
PlayerName(lv_casterPlayer)
// L10811
PlayerName(lv_targetPlayer)
// L136
PlayerName(lp_player)
// L4542
PlayerName(libNtve_gf_KillingPlayer())
// L4553
PlayerName(libNtve_gf_KillingPlayer())
// L5218
PlayerName(libGame_gf_HeroKilledKillingPlayer())
// L5225
PlayerName(libGame_gf_HeroKilledKillingPlayer())

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L929
PlayerName(lp_playerIndex)
// L2341
PlayerName(lv_targetPlayer)
// L2343
PlayerName(lv_casterPlayer)
// L2409
PlayerName(lv_resurrectPlayer)
// L2472
PlayerName(UnitGetOwner(lv_itUnit))

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod

LibPBUI.galaxy

// L336
PlayerName(lv_itViewer)
// L350
PlayerName(lv_itPlayer)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L487
PlayerName(lp_playerIndex)
// L1896
PlayerName(lv_targetPlayer)
// L1898
PlayerName(lv_casterPlayer)
// L1962
PlayerName(lv_resurrectPlayer)
// L2029
PlayerName(UnitGetOwner(lv_itUnit))

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEU.galaxy

// L359
PlayerName(lv_itViewer)
// L373
PlayerName(lv_itPlayer)

# mods/heroesdata.stormmod

GameLib.galaxy

// L562
PlayerName(lp_player)
// L8437
PlayerName(lv_creditPlayer)
// L8440
PlayerName(lv_creditPlayer)
// L8498
PlayerName(lp_owningPlayer)
// L8502
PlayerName(lp_owningPlayer)
// L10286
PlayerName(lp_player)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1062
PlayerName(libMapM_gv_jungleCreepCamps[lp_camp].lv_capturingPlayer)
// L1329
PlayerName(lp_Player)

# mods/heroesdata.stormmod

UILib.galaxy

// L1644
PlayerName(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L159
PlayerName(lp_player)
// L164
PlayerName(lp_player)
// L192
PlayerName(lp_pingTargetOwner)
// L245
PlayerName(lp_player)
// L335
PlayerName(lp_player)
// L850
PlayerName(lv_player)
// L851
PlayerName(EventPlayer())

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L4518
PlayerName(lp_player)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L759
PlayerName(1)
// L761
PlayerName(2)
// L765
PlayerName(2)
// L767
PlayerName(1)
// L1838
PlayerName(lv_indexPlayer)
// L5811
PlayerName(lp_player)
// L7516
PlayerName(EventPlayer())

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L938
PlayerName(lv_currentIndex)

# mods/warcoop/warmeleeai.sc2mod

LibW3AI.galaxy

// L325
PlayerName(EventPlayer())