...
Each (numerically referenced) element in the array contains an object with the following properties:
Property | Description |
---|---|
difficulty | The player's difficulty level (only applicable for AI players). |
colour | The player's colour name, as a string. You can use _() to translate the colour names in to the human player's locale. |
position | The 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. |
team | The 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