I would like to ask more questions about Boss Stars.
I can’t find a reliable way to catch a unit as it is summoned.
I think there is somewhat of a crossover between the this.build method and the this.summon, because they seems to be described as method generating thangs. However I think the this.build method is outdated and no longer in use, but still has a description. For example, the following picture shows a sample code provided in ZeroSums but doesn’t work. (this.build isn’t accessible, and this.built is always empty)
That’s too bad, because with the this.built array, I could have gotten away with referencing my newly created unit :
totalBuilt += 1 ;
newUnit = this.built[ totalBuilt -1] ;
I thought the summon(“unit”) method would have returned the new unit, but it doesn’t (it seems to only return a (string?) named build). Maybe the newly created unit would be the most natural thing to return from this.summon( ) method ?
Is there something I misunderstood in the spawning methods provided by BossStars that would help me catch a new unit as it is created ?