Does findExitTo work with room names?
pheonix last edited by
If not, how would a creep get the id of the spawn that's in their room?
SystemParadox last edited by
According to https://docs.screeps.com/api/#Room.findExitTo,
findExitTocan accept either a string (room name) or a
I don't know why you need the spawn ID for this, but you can get spawns like this:
let spawn = room.find(FIND_MY_SPAWNS);