# 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

// L8939
PlayerCommander(lv_i)
// L10565
PlayerCommander(lv_indexPlayer)
// L12302
PlayerCommander(lv_indexPlayer)
// L12653
PlayerCommander(EventPlayer())
// L13361
PlayerCommander(lv_dyingUnitPlayer)
// L15114
PlayerCommander(UnitGetOwner(EventUnit()))
// L15373
PlayerCommander(lv_killedPlayer)
// L15414
PlayerCommander(UnitGetOwner(EventUnit()))
// L15465
PlayerCommander(UnitGetOwner(EventUnit()))
// L15529
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)