Versions Compared

Key

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

Indicates the object contains player data.

 

Notes

This constant is assigned to the .type property of Player objects (which are located in the playerData[] array).

Backporting

The constant was added in Warzone 3.1 Beta 11. You can easily backport it to earlier versions as follows:

Code Block
themeRDark
languagejavascript
titleBackport PLAYER_DATA to WZ 3.1 Beta 10 and earlier
linenumberstrue
if (typeof PLAYER_DATA == "undefined") { // wz 3.1 beta 10 or earlier
  // define constant
  const PLAYER_DATA = "PLAYER_DATA"7;
  // add 'type' property to player objects
  playerData.forEach(function(o, i, a) {
    o.type = PLAYER_DATA;
  });
}
Div
classbox

Availability

Requires:

  • Warzone 3.1 Beta 11
Div
classbox

See also

Related articles:

  • Player object – the object associated with this type, it provides details about a player in the game.
  • playerData[] – an array of player objects