So I currently have code that defines the amount of sources in a room by using the creep's memory...
var source = creep.room.find(FIND_SOURCES).;
var NumberOfSources = source.length;
I'm trying to assign a group/team of creeps to certain sources
For example: miningTeam1 would go to the closest source, miningTeam2 would go to the second closest source, miningTeam3 would go to the third closest source, etc...
I'm having trouble finding a way to separate each individual source, any help would be appreciated thanks!