Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each (numerically referenced) element in the array contains an object with the following properties:

PropertyDescription
difficultyThe player's difficulty level (only applicable for AI players).
colourThe player's colour name, as a string. You can use _() to translate the colour names in to the human player's locale.
positionThe map position (integer) to which the player is assigned. You can find it's x,y co-ordinates by cross-referencing against the startPositions array.
teamThe team to which the player is assigned, if applicablefixed alliances are set (see Alliance types).

Examples

To follow

See also

  • Object.uAddProperty() – contains an example that shows how to add .isAlly, .isEnemy, .isMe and .primaryTarget properties to player data objects (smile)