# Name Of Player
Grammar — Name of player p
Flags —Native
|Function
Returns the name of the player.
# Arguments
int
— Player
Returns — text
native text PlayerName(int inPlayer);
# Related
Category: Player / Player Settings
- [F] —
void
— Modify Player Property (Integer) — ( PlayerModifyPropertyInt ) - [F] —
void
— Modify Player Property (Real) — ( PlayerModifyPropertyFixed ) - [F] —
int
— Player Property (Integer) — ( PlayerGetPropertyInt ) - [F] —
fixed
— Player Property (Real) — ( PlayerGetPropertyFixed ) - [F] —
void
— Modify Player Score (Integer) — ( PlayerScoreValueSetFromInt ) - [F] —
void
— Modify Player Score (Real) — ( PlayerScoreValueSetFromFixed ) - [F] —
int
— Player Score Value (Integer) — ( PlayerScoreValueGetAsInt ) - [F] —
fixed
— Player Score Value (Real) — ( PlayerScoreValueGetAsFixed ) - [F] —
void
— Turn Player Flag On/Off — ( PlayerSetState ) - [F] —
bool
— Player Flag Check — ( PlayerGetState ) - [F] —
bool
— Player License Check — ( PlayerHasLicense ) - [F] —
bool
— Player Access Check — ( PlayerHasAccessTo ) - [F] —
bool
— Player Has Reward — ( PlayerHasReward ) - [F] —
bool
— Player Has Talent — ( PlayerHasTalent ) - [F] —
text
— Name Of Player — ( PlayerName ) - [F] —
string
— Handle Of Player — ( PlayerHandle ) - [F] —
string
[ gamelink::Race ] — Race Of Player — ( PlayerRace ) - [F] —
string
[ gamelink::Hero ] — Hero Of Player — ( PlayerHero ) - [F] —
string
[ gamelink::Skin ] — Skin Of Player — ( PlayerSkin ) - [F] —
string
[ gamelink::Mount ] — Mount Of Player — ( PlayerMount ) - [F] —
string
[ gamelink::Spray ] — Spray Of Player — ( PlayerSpray ) - [F] —
string
[ gamelink::Artifact ] — Artifact Of Player — ( PlayerArtifact ) - [F] —
int
— Artifact Rank Of Player — ( PlayerArtifactRank ) - [F] —
string
[ gamelink::Commander ] — Commander Of Player — ( PlayerCommander ) - [F] —
int
— Commander Level Of Player — ( PlayerCommanderLevel ) - [F] —
int
— Commander Mastery Level Of Player — ( PlayerCommanderMasteryLevel ) - [F] —
int
— Commander Mastery Talent Rank Of Player — ( PlayerCommanderMasteryTalentRank ) - [F] —
int
— Commander Selected Prestige Of Player — ( PlayerCommanderSelectedPrestige ) - [F] —
int
— Brutal Plus Difficulty of Player — ( PlayerBrutalPlusDifficulty ) - [F] —
int
— Retry Mutation Index of Player — ( PlayerRetryMutation ) - [F] —
int
— Allied Commander Enemy Wave Type — ( PlayerACEnemyWaveType ) - [F] —
point
— Start Location Of Player — ( PlayerStartLocation ) - [F] —
int
[ preset::PlayerController ] — Controller Of Player — ( PlayerType ) - [F] —
int
[ preset::PlayerStatus ] — Status Of Player — ( PlayerStatus ) - [F] —
void
— Set Player Color — ( PlayerSetColorIndex ) - [F] —
void
— Set Player Race — ( PlayerSetRace ) - [F] —
void
— Set Player Hero — ( PlayerSetHero ) - [F] —
void
— Set Player Skin — ( PlayerSetSkin ) - [F] —
void
— Set Player Console Skin — ( PlayerSetConsoleSkin ) - [F] —
void
— Apply Player Skin — ( PlayerApplySkin ) - [F] —
void
— Apply Player Skin (Replacing Existing Unit) — ( libNtve_gf_PlayerApplySkinReplacingExistingUnit ) - [F] —
void
— Set Player Mount — ( PlayerSetMount ) - [F] —
void
— Set Player Spray — ( PlayerSetSpray ) - [F] —
void
— Set Player Commander — ( PlayerSetCommander ) - [F] —
void
— Set Player Commander Level — ( PlayerSetCommanderLevel ) - [F] —
void
— Set Player Commander Mastery Level — ( PlayerSetCommanderMasteryLevel ) - [F] —
void
— Set Player Death Timer — ( PlayerSetDeathTimer ) - [F] —
void
— Set Player Bounds — ( PlayerSetBounds ) - [F] —
void
— Add Player Talent — ( PlayerAddTalent ) - [F] —
void
— Remove Player Talent — ( PlayerRemoveTalent ) - [F] —
void
— Add Player Response — ( PlayerAddResponse ) - [F] —
void
— Remove Player Response — ( PlayerRemoveResponse ) - [F] —
void
— Clear Player Response — ( PlayerClearResponse ) - [F] —
int
[ playercolor ] — Player Color — ( PlayerGetColorIndex ) - [F] —
void
— Override Player Option — ( PlayerOptionOverride ) - [F] —
string
— Player Hotkey Profile — ( PlayerGetHotkeyProfile ) - [F] —
void
— Player Property Changed — ( TriggerAddEventPlayerPropChange ) - [F] —
void
— Player Joins Game — ( TriggerAddEventPlayerJoin ) - [F] —
void
— Player Leaves Game — ( TriggerAddEventPlayerLeft ) - [F] —
int
— Triggering Player — ( EventPlayer ) - [F] —
int
[ preset::Player_Property_Get ] — Triggering Player Property — ( EventPlayerProperty ) - [F] —
int
— Triggering Player Property Change (Integer) — ( EventPlayerPropertyChangeInt ) - [F] —
fixed
— Triggering Player Property Change (Real) — ( EventPlayerPropertyChangeFixed ) - [F] —
void
— Player Add Label — ( PlayerAddLabel ) - [F] —
void
— Player Remove Label — ( PlayerRemoveLabel ) - [F] —
void
— Player Remove All Labels — ( PlayerRemoveAllLabels ) - [F] —
bool
— Player Has Label — ( PlayerHasLabel ) - [F] —
void
— Player Add Reward — ( PlayerAddReward )
# Examples
# campaigns/swarm.sc2campaign
// L1128
PlayerName(gv_pLAYER_09_ZAGARA)
// L1230
PlayerName(gv_pLAYER_02_DOMINION)
// L1230
PlayerName(gv_pLAYER_02_DOMINION)
// L1128
PlayerName(gv_pLAYER_09_ZAGARA)
# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod
// L2744
PlayerName(libAMVS_gv_arti.lv_player)
// L2799
PlayerName(libAMVS_gv_arti.lv_player)
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// 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
// 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
// L336
PlayerName(lv_itViewer)
// L350
PlayerName(lv_itPlayer)
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// 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
// L359
PlayerName(lv_itViewer)
// L373
PlayerName(lv_itPlayer)
# mods/heroesdata.stormmod
// 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
// L1062
PlayerName(libMapM_gv_jungleCreepCamps[lp_camp].lv_capturingPlayer)
// L1329
PlayerName(lp_Player)
# mods/heroesdata.stormmod
// L1644
PlayerName(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player)
# mods/liberty.sc2mod
// 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
// L4518
PlayerName(lp_player)
# mods/starcoop/starcoop.sc2mod
// 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
// L938
PlayerName(lv_currentIndex)
# mods/warcoop/warmeleeai.sc2mod
// L325
PlayerName(EventPlayer())