[KEY LEARNING]: Unit IDs

TheLopez

Deity
Joined
Jan 16, 2006
Messages
2,525
Location
Oregon
In case people didn't know:

Learning:
Unit ID's are only unique to players and not to the game.

Explanation:
What this means to anyone wanting to change the game using python or the future SDK is: when referencing unit IDs make sure that you keep that unit ID in the context of a particular player.

Example:
Unit ID 123 could be a warrior for player "foo" but it could also be a scout for player "snafu".


Note: It would be nice for people to post these types of key learnings for future reference and use the [KEY LEARNING] preface in the subject for easy searching.
 
Back
Top Bottom