You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
This constant is assigned to the .type property of Player objects (which are located in the playerData array).
.type
The constant was added in Warzone 3.1 Beta 11. You can easily backport it to earlier versions as follows:
if (typeof PLAYER_DATA == "undefined") { // wz 3.1 beta 10 or earlier // define constant const PLAYER_DATA = "PLAYER_DATA"; // add 'type' property to player objects playerData.forEach(function(o, i, a) { o.type = PLAYER_DATA; }); }
Requires:
Related articles: