Resource (Object)

From Screeps Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This article is a stub. You can help Screeps Wiki by editing to add more information.

The Resource class represents a dropped pile of resources that requires a creep to pickup() to use. It will decay if it is not picked up soon enough.

Finding Resource objects

You will need to use one of the find methods of either a Room object, or a RoomPosition object to programmatically access either an array of them or just one.