Checking unit's ID during game
Moderator: Moderators
- tow_dragon
- Posts: 45
- Joined: 05 May 2006, 13:53
Checking unit's ID during game
I would be happy to see that feature in Spring. It would be very helpful for testing TSI.
70b1 changelog:
Code: Select all
- A few new COB "get" constants:
70 MAX_ID returns maximum number of units - 1
71 MY_ID returns ID of current unit
72 UNIT_TEAM returns team of unit given with parameter
73 UNIT_BUILD_PERCENT_LEFT basically BUILD_PERCENT_LEFT, but comes with a unit parameter
74 UNIT_ALLIED is unit given with parameter allied to the unit of the current COB script. 1=allied, 0=not allied
- tow_dragon
- Posts: 45
- Joined: 05 May 2006, 13:53
ekhm... you don't understand me.... I will explain it more clearly:
I want to check unit's ID in game BY MYSELF, not check unit's ID by AI. I want to type a command (after typing ENTER) and get selected unit's AI. Of course I can write another group AI doing similar thing, or change Spring's code and write support for another command, but it will take quite much time.
I want to check unit's ID in game BY MYSELF, not check unit's ID by AI. I want to type a command (after typing ENTER) and get selected unit's AI. Of course I can write another group AI doing similar thing, or change Spring's code and write support for another command, but it will take quite much time.