# Race Of Player

Grammar — Race of player p
FlagsNative | Function

Returns the race of the player.

# Arguments

  • int — Player

Returns — string [ gamelink::Race ]

native string PlayerRace(int inPlayer);

Category: Player / Player Settings

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L364
PlayerRace(UnitGetOwner(lp_victim))
// L391
PlayerRace(UnitGetOwner(lp_victim))
// L364
PlayerRace(UnitGetOwner(lp_victim))
// L391
PlayerRace(UnitGetOwner(lp_victim))

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L2615
PlayerRace(1)
// L3499
PlayerRace(auto5D3E40F6_var)

# campaigns/void.sc2campaign

MapScript.galaxy

// 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

VoidCampaignUILib.galaxy

// 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

LibChal.galaxy

// 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

MeleeAI.galaxy

// L193
PlayerRace(player)
// L211
PlayerRace(player)
// L223
PlayerRace(player)
// L234
PlayerRace(player)

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L2841
PlayerRace(1)
// L2864
PlayerRace(1)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L2647
PlayerRace(lp_player)
// L3618
PlayerRace(lp_player)
// L4164
PlayerRace(PlayerGroupLoopCurrent())

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L3697
PlayerRace(1)
// L6443
PlayerRace(1)
// L6520
PlayerRace(1)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L470
PlayerRace(autoC51461E9_var)
// L2619
PlayerRace(lv_playerIter)
// L2620
PlayerRace(lv_playerIter)
// L2969
PlayerRace(lp_player)
// L3105
PlayerRace(lp_player)
// L3117
PlayerRace(lp_player)
// L7583
PlayerRace(lp_player)
// L7858
PlayerRace(lp_player)
// L10577
PlayerRace(lv_indexPlayer)
// L11412
PlayerRace(lp_player)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L2936
PlayerRace(lp_giftPlayer)
// L2941
PlayerRace(lp_giftPlayer)
// L7638
PlayerRace(lv_indexPlayer)
// L7890
PlayerRace(lv_indexPlayer)
// L8220
PlayerRace(lv_indexPlayer)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// 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

LibCOUI.galaxy

// 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

MeleeAI.galaxy

// L193
PlayerRace(player)
// L211
PlayerRace(player)
// L223
PlayerRace(player)
// L234
PlayerRace(player)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L1609
PlayerRace(1)
// L2339
PlayerRace(auto5D3E40F6_var)