# Convert Player Color To Color

Grammar — Color(playerColor)
FlagsFunction

Converts a player color value to an actual color

# Arguments

  • int [ playercolor ] — Player Color

Returns — color

color libNtve_gf_ConvertPlayerColorToColor(
	int lp_playerColor,
);

Category: Conversion / Color Conversions

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L9494
libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor())

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L1470
libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor())
// L1644
libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor())

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1989
libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor())
// L2000
libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor())

# mods/heroesdata.stormmod

GameLib.galaxy

// L10018
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(libGame_gf_ComputerPlayerInTeam(lp_team), false))

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L3585
libNtve_gf_ConvertPlayerColorToColor(2)
// L3588
libNtve_gf_ConvertPlayerColorToColor(1)
// L3591
libNtve_gf_ConvertPlayerColorToColor(2)
// L3595
libNtve_gf_ConvertPlayerColorToColor(2)
// L3785
libNtve_gf_ConvertPlayerColorToColor(2)
// L3788
libNtve_gf_ConvertPlayerColorToColor(1)
// L3791
libNtve_gf_ConvertPlayerColorToColor(0)
// L3795
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(0, false))

# mods/liberty.sc2mod

LibertyLib.galaxy

// L155
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lp_player, false))
// L242
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lp_player, false))
// L335
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lp_player, false))

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L760
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(1, false))
// L762
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(2, false))
// L766
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(2, false))
// L768
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(1, false))
// L973
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lp_player, false))
// L984
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(libCOOC_gf_CC_PlayerAlly(lp_player), false))
// L5988
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(2, false))
// L5991
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(1, false))

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L1064
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_p, false))

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L937
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_currentIndex, false))
// L3088
libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_player, false))