Advertisement
Guest User

screeps bugreport

a guest
May 21st, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Before executing code below: get a creep you own
  2.  
  3. // Using FIND_* constants
  4. // Returns nothing (to be exactly, it returns null and says hai twice)
  5. Game.creeps[Object.keys(Game.creeps)[0]].pos.findClosest(FIND_MY_CREEPS, {filter: function(e) {console.log('hai'); return false;}});
  6.  
  7. // Using custom objects
  8. // Returns the creep object and doesn't even say hai!
  9. Game.creeps[Object.keys(Game.creeps)[0]].pos.findClosest([Game.creeps[Object.keys(Game.creeps)[0]]], {filter: function(e) {console.log('hai'); return false;}});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement