DaddyHolby
Chieftain
I've been trying to get a list of units through python that are in play at the start of a game and I haven't found anything that will work. I've looked through the API guide and I haven't seen anything that will return a list (array or collection) of CyUnit objects or a list (again array or collection) of unit IDs that can be used with the CyPlayer.GetUnit function to get units.
What I'm trying to do is loop through all of the units at the start of a game and change their names (and later assign a promotion to them).
So is there anyway to do this in Python or is this a SDK thing?
What I'm trying to do is loop through all of the units at the start of a game and change their names (and later assign a promotion to them).
So is there anyway to do this in Python or is this a SDK thing?