# Race Of Player
Grammar — Race of player p
Flags —Native
|Function
Returns the race of the player.
# Arguments
int
— Player
Returns — string
[ gamelink::Race ]
native string PlayerRace(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/liberty.sc2campaign
// L364
PlayerRace(UnitGetOwner(lp_victim))
// L391
PlayerRace(UnitGetOwner(lp_victim))
// L364
PlayerRace(UnitGetOwner(lp_victim))
// L391
PlayerRace(UnitGetOwner(lp_victim))
# campaigns/swarmstory.sc2campaign
// L2615
PlayerRace(1)
// L3499
PlayerRace(auto5D3E40F6_var)
# campaigns/void.sc2campaign
// L1123
PlayerRace(gv_p01_USER)
// L1173
PlayerRace(gv_p01_USER)
// L1223
PlayerRace(gv_p01_USER)
// L1273
PlayerRace(gv_p01_USER)
// L1325
PlayerRace(gv_p01_USER)
// L1376
PlayerRace(gv_p01_USER)
// L1426
PlayerRace(gv_p01_USER)
// L1484
PlayerRace(gv_p01_USER)
// L1518
PlayerRace(gv_p01_USER)
// L1628
PlayerRace(gv_p01_USER)
// L1123
PlayerRace(gv_p01_USER)
// L1173
PlayerRace(gv_p01_USER)
// L1223
PlayerRace(gv_p01_USER)
// L1273
PlayerRace(gv_p01_USER)
// L1325
PlayerRace(gv_p01_USER)
// L1376
PlayerRace(gv_p01_USER)
// L1426
PlayerRace(gv_p01_USER)
// L1484
PlayerRace(gv_p01_USER)
// L1518
PlayerRace(gv_p01_USER)
// L1628
PlayerRace(gv_p01_USER)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L1845
PlayerRace(lp_player)
// L4066
PlayerRace(autoC51461E9_var)
// L5033
PlayerRace(1)
# campaigns/voidstory.sc2campaign
// L1416
PlayerRace(1)
// L1689
PlayerRace(1)
// L3806
PlayerRace(1)
// L3962
PlayerRace(1)
// L5246
PlayerRace(1)
// L9207
PlayerRace(1)
// L9287
PlayerRace(1)
// L9849
PlayerRace(1)
# mods/challenges.sc2mod
// L277
PlayerRace(lp_player)
// L325
PlayerRace(1)
// L609
PlayerRace(1)
// L683
PlayerRace(1)
// L745
PlayerRace(1)
// L871
PlayerRace(1)
// L983
PlayerRace(1)
// L1187
PlayerRace(1)
// L1246
PlayerRace(1)
// L1294
PlayerRace(1)
# mods/core.sc2mod
// L193
PlayerRace(player)
// L211
PlayerRace(player)
// L223
PlayerRace(player)
// L234
PlayerRace(player)
# mods/missionpacks/campaigncommon.sc2mod
// L2841
PlayerRace(1)
// L2864
PlayerRace(1)
# mods/missionpacks/novacampaign.sc2mod
// L2647
PlayerRace(lp_player)
// L3618
PlayerRace(lp_player)
// L4164
PlayerRace(PlayerGroupLoopCurrent())
# mods/missionpacks/novacampaign.sc2mod
// L3697
PlayerRace(1)
// L6443
PlayerRace(1)
// L6520
PlayerRace(1)
# mods/starcoop/starcoop.sc2mod
// L470
PlayerRace(autoC51461E9_var)
// L2619
PlayerRace(lv_playerIter)
// L2620
PlayerRace(lv_playerIter)
// L2969
PlayerRace(lp_player)
// L3105
PlayerRace(lp_player)
// L3117
PlayerRace(lp_player)
// L7609
PlayerRace(lp_player)
// L7884
PlayerRace(lp_player)
// L10610
PlayerRace(lv_indexPlayer)
// L11445
PlayerRace(lp_player)
# mods/starcoop/starcoop.sc2mod
// L2936
PlayerRace(lp_giftPlayer)
// L2941
PlayerRace(lp_giftPlayer)
// L7638
PlayerRace(lv_indexPlayer)
// L7890
PlayerRace(lv_indexPlayer)
// L8220
PlayerRace(lv_indexPlayer)
# mods/starcoop/starcoop.sc2mod
// L2401
PlayerRace(lp_player)
// L3876
PlayerRace(lp_player)
// L3967
PlayerRace(lp_player)
// L4088
PlayerRace(lp_player)
// L4119
PlayerRace(lp_player)
// L4121
PlayerRace(lp_player)
// L4132
PlayerRace(lp_player)
// L4156
PlayerRace(lp_player)
// L4189
PlayerRace(lp_player)
// L4523
PlayerRace(lp_player)
# mods/starcoop/starcoop.sc2mod
// L2666
PlayerRace(lp_player)
// L2669
PlayerRace(lp_player)
// L4716
PlayerRace(lp_player)
// L4773
PlayerRace(lp_player)
// L4949
PlayerRace(lp_player)
// L4961
PlayerRace(lp_player)
// L4982
PlayerRace(lp_player)
// L4997
PlayerRace(lp_player)
// L5042
PlayerRace(lp_player)
// L5797
PlayerRace(lp_player)
# mods/starcoop/starcoop.sc2mod
// L193
PlayerRace(player)
// L211
PlayerRace(player)
// L223
PlayerRace(player)
// L234
PlayerRace(player)
# mods/voidprologue.sc2mod
// L1609
PlayerRace(1)
// L2339
PlayerRace(auto5D3E40F6_var)