Player Color

Player colors can be set using the SetPlayerColor function from TethysGame. Seven different colors are available and can be referenced through the PlayerColor enum.

// Color of structures and units belonging to a given player
enum PlayerColor
{
	PlayerBlue = 0, //Standard Eden color
	PlayerRed,      //Standard Plymouth color
	PlayerGreen,
	PlayerYellow,
	PlayerCyan,
	PlayerMagenta,
	PlayerBlack     //Not selectable as a player color from the multiplayer game initialization screen
};

Black is not typically used. For single player scenarios, Eden is typically blue and Plymouth is typically red.

When Outpost 2 auto-sets an AI color in a multiplayer game, AIs take the first color that isn't taken by a human player in this order: blue, red, green, yellow, cyan, magenta, black.


- Go Back to Programming a Scenario
- Go Back to Outpost 2 Software Development Kit
- Go Back to Outpost 2 Main page
- Go Back to Wiki Home Page