Screeps Wiki
Advertisement

When calling a function to find an object (or array of objects) in a room, a constant needs to be included to specify the type of object in question. This list provides these constants and their corresponding values.

Constants[]

  • FIND_EXIT_TOP: 1
  • FIND_EXIT_RIGHT: 3
  • FIND_EXIT_BOTTOM: 5
  • FIND_EXIT_LEFT: 7
  • FIND_EXIT: 10
  • FIND_CREEPS: 101
  • FIND_MY_CREEPS: 102
  • FIND_HOSTILE_CREEPS: 103
  • FIND_SOURCES_ACTIVE: 104
  • FIND_SOURCES: 105
  • FIND_DROPPED_ENERGY: 106
  • FIND_DROPPED_RESOURCES: 106
  • FIND_STRUCTURES: 107
  • FIND_MY_STRUCTURES: 108
  • FIND_HOSTILE_STRUCTURES: 109
  • FIND_FLAGS: 110
  • FIND_CONSTRUCTION_SITES: 111
  • FIND_MY_SPAWNS: 112
  • FIND_HOSTILE_SPAWNS: 113
  • FIND_MY_CONSTRUCTION_SITES: 114
  • FIND_HOSTILE_CONSTRUCTION_SITES: 115
  • FIND_MINERALS: 116
  • FIND_NUKES: 117
Advertisement