# Controller Of Player

Grammar — Controller of player p
FlagsNative | Function

Returns the controller of the specified player. This function can return as Computer, User, None, or Neutral.

# Arguments

  • int — Player

Returns — int [ preset::PlayerController ]

native int PlayerType(int inPlayer);

Category: Player / Player Settings

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L8247
PlayerType(lv_indexPlayer)
// L8247
PlayerType(lv_indexPlayer)
// L8280
PlayerType(lv_indexPlayer)
// L8291
PlayerType(lv_indexPlayer)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L7131
PlayerType(lv_indexPlayer)
// L12722
PlayerType(lv_indexPlayer)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L5918
PlayerType(lv_indexPlayer)
// L6564
PlayerType(lv_indexPlayer)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L2106
PlayerType(lv_indexPlayer)
// L6066
PlayerType(UnitGetOwner(EventUnit()))

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

LibPVEB.galaxy

// L482
PlayerType(lp_player)
// L492
PlayerType(lp_player)

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

LibPBUI.galaxy

// L635
PlayerType(lv_itPlayer)

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

LibPVEM.galaxy

// L1033
PlayerType(lp_player)
// L1043
PlayerType(lp_player)

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

LibPVEU.galaxy

// L623
PlayerType(lv_itPlayer)

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L1048
PlayerType(lv_itPlayer2)

# mods/heroesdata.stormmod

AILib.galaxy

// L1263
PlayerType(lv_currentPlayer)
// L1403
PlayerType(lv_playerIndex)
// L1463
PlayerType(lp_trigPlayer)
// L1542
PlayerType(lp_trigPlayer)
// L1626
PlayerType(lp_trigPlayer)
// L2008
PlayerType(lp_trigPlayer)
// L2016
PlayerType(lp_trigPlayer)
// L2047
PlayerType(lp_player)

# mods/heroesdata.stormmod

GameLib.galaxy

// L494
PlayerType(lv_itPlayer)
// L561
PlayerType(lp_player)
// L637
PlayerType(lv_itPlayer)
// L7426
PlayerType(lp_choosingPlayer)
// L7538
PlayerType(lp_choosingPlayer)
// L7754
PlayerType(lv_itPlayer)
// L7822
PlayerType(lp_choosingPlayer)
// L7888
PlayerType(lp_choosingPlayer)
// L10278
PlayerType(lp_player)
// L10703
PlayerType(lv_itPlayer)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L1712
PlayerType(lp_player)
// L2394
PlayerType(lp_player)
// L2398
PlayerType(lp_player)

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L958
PlayerType(lv_itPlayer)
// L1990
PlayerType(lv_itPlayer)
// L2462
PlayerType(lv_itPlayer)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L631
PlayerType(lv_i)
// L647
PlayerType(lv_i)
// L5758
PlayerType(lv_playerIndex)

# mods/heroesdata.stormmod

UILib.galaxy

// L1643
PlayerType(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player)

# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod

LibMLBD.galaxy

// L657
PlayerType(lv_itPlayer)
// L2886
PlayerType(lv_itPlayer)

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L1996
PlayerType(lv_itPlayer)

# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod

LibVLSK.galaxy

// L2220
PlayerType(lv_i)
// L2220
PlayerType(lv_i)

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L1711
PlayerType(lv_gallPlayer)
// L1788
PlayerType(lv_gallPlayer)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L325
PlayerType(lv_dialogPlayer)
// L783
PlayerType(lv_player)
// L799
PlayerType(lv_player)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L2779
PlayerType(lv_indexPlayer)

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L2244
PlayerType(lv_indexPlayer)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L577
PlayerType(lv_indexPlayer)
// L975
PlayerType(lp_aIPlayerEnemy)
// L3296
PlayerType(2)
// L10734
PlayerType(UnitGetOwner(lp_unit))
// L12406
PlayerType(2)
// L14908
PlayerType(lv_indexPlayerOuter)
// L14914
PlayerType(lv_indexPlayerInner)
// L30333
PlayerType(lv_indexPlayer)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L8064
PlayerType(lv_player)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L3900
PlayerType(lv_indexPlayer)
// L4363
PlayerType(lv_indexPlayer)
// L4628
PlayerType(lv_indexPlayer)
// L4697
PlayerType(lv_indexPlayer)
// L5233
PlayerType(lv_indexPlayer)
// L5584
PlayerType(lv_indexPlayer)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L680
PlayerType(lv_indexPlayer)
// L1091
PlayerType(lp_player)
// L6648
PlayerType(libCOOC_gf_CC_PlayerAlly(EventPlayer()))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L5370
PlayerType(lv_indexPlayer)
// L5861
PlayerType(lv_indexPlayer)

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L934
PlayerType(lv_player)
// L940
PlayerType(lv_player)
// L944
PlayerType(lv_player)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L634
PlayerType(0)
// L639
PlayerType(15)
// L693
PlayerType(lv_itPlayer)
// L773
PlayerType(lv_playerOld)
// L773
PlayerType(lv_playerNew)
// L782
PlayerType(lv_playerNew)
// L782
PlayerType(lv_playerOld)
// L807
PlayerType(UnitGetOwner(EventUnit()))
// L862
PlayerType(UnitGetOwner(EventUnit()))

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L503
PlayerType(auto8BB4E0A1_var)

# mods/warcoop/warmeleeai.sc2mod

LibW3AI.galaxy

// L49
PlayerType(lv_p)
// L227
PlayerType(lv_p)
// L287
PlayerType(lv_p)