Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Gea
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by Gea

    • Trouble with .find

      var towers = Game.Room.find(FIND_MY_STRUCTURES, {filter: {structureType: STRUCTURE_TOWER}});

      and

      var towers = Game.rooms[roomName].find(FIND_MY_STRUCTURES, { filter: { structureType: STRUCTURE_TOWER } });

      keeps throwing Room.find is not a function errors and I can't figure out why.

      posted in Help
      Gea