Page 1 of 1

Checking unit's ID during game

Posted: 01 Oct 2006, 19:46
by tow_dragon
I would be happy to see that feature in Spring. It would be very helpful for testing TSI.

Posted: 01 Oct 2006, 22:23
by Gnomre
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

Posted: 02 Oct 2006, 17:11
by tow_dragon
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.

Posted: 02 Oct 2006, 17:52
by trepan
The LUA control panel will allow you to do what you want.