pysc2
pysc2 copied to clipboard
obs.observation.player.larva_count is always 0
Hello all, I'm writing a Zerg agent with the Simple64 map. Problem is, I can't use obs.observation.player.larva_count since the value is always zero. Using feature units I can see that I have several larvae on screen, but this variable stays unchanged. Any idea why that might be ?
While a Hatchery, Lair, or Hive is 'selected', actions.FUNCTIONS.select_larva() is usable and obs.observation.player.larva_count should be checked before you call select_larva().