Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Overview

An array of objects that describe each player on the map.

By inspecting the player data stored in this array, you can determine some useful information about your opponents/allies.

The data is based on either the settings in a campaign file, or the game settings from a skirmish or multiplayer game:

The index of each element is the player's ID within the game (the value of me for that player). Note that this is not necessarily the same as the player's starting location - some starting positions might not have been assigned a player.

Properties

Each (numerically referenced) element in the array contains a Player object.

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)
  • No labels