# Commander Of Player

Grammar — Commander of player p
FlagsNative | Function

Returns the commander of the player.

# Arguments

  • int — Player

Returns — string [ gamelink::Commander ]

native string PlayerCommander(int inPlayer);

Category: Player / Player Settings

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L8965
PlayerCommander(lv_i)
// L10598
PlayerCommander(lv_indexPlayer)
// L12335
PlayerCommander(lv_indexPlayer)
// L12686
PlayerCommander(EventPlayer())
// L13394
PlayerCommander(lv_dyingUnitPlayer)
// L15147
PlayerCommander(UnitGetOwner(EventUnit()))
// L15406
PlayerCommander(lv_killedPlayer)
// L15447
PlayerCommander(UnitGetOwner(EventUnit()))
// L15498
PlayerCommander(UnitGetOwner(EventUnit()))
// L15562
PlayerCommander(UnitGetOwner(EventUnit()))

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L1957
PlayerCommander(lp_player)
// L4121
PlayerCommander(lp_player)
// L4519
PlayerCommander(lp_player)
// L4521
PlayerCommander(lp_player)
// L5257
PlayerCommander(lp_player)
// L8445
PlayerCommander(EventUnitDamageSourcePlayer())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L1045
PlayerCommander(lp_player)
// L1046
PlayerCommander(lp_player)
// L1051
PlayerCommander(lv_playerAlly)
// L1052
PlayerCommander(lv_playerAlly)
// L1612
PlayerCommander(lp_player)
// L2250
PlayerCommander(lp_player)
// L4777
PlayerCommander(lp_player)
// L4790
PlayerCommander(lp_player)
// L4795
PlayerCommander(lp_player)
// L4823
PlayerCommander(lp_player)