Closed chongyi-zheng closed 4 years ago
Yes, it is indeed possible. The debug API of sc2client-proto includes the DebugCreateUnit
command which can be used to create units programmatically. It isn't part of the smac codebase, but I think using it should be straightforward.
I'm ready to help if there are any problems.
OK, thanks for your help anyway!
With the help of SC2 Editor, we can create units during one episode of the game. It seems smac only supports static spawn currently. I mean we must specify the number of agents and the number of enemies in the map configuration like this:
And we have to spawn all the units for an episode at the very beginning.
Is it possible to create some interfaces to handle the dynamic spawn units during the game?