Advertisement
Guest User

LWG see enemy players' buildings and units

a guest
Jul 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.   window.seeAll = function(yes) {
  3.     if (window.seeAllYes === yes) return;
  4.     window.seeAllYes = yes;
  5.     if (yes) {
  6.       window.seeAllInterval = setInterval(() => game.buildings.forEach(b => { if (b.owner.team !== PLAYING_PLAYER.team && b.owner.team.number !== 0) b.seenBy[PLAYING_PLAYER.team.number] = b.seenBy[b.owner.team.number];}), 250);
  7.     } else {
  8.       if (window.seeAllInterval) clearInterval(window.seeAllInterval);
  9.     }
  10.   }
  11.   seeAll(true);
  12. })();
  13.  
  14. // disable with seeAll(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement