Checking unit's ID during game

Checking unit's ID during game

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
tow_dragon
Posts: 45
Joined: 05 May 2006, 13:53

Checking unit's ID during game

Post by tow_dragon »

I would be happy to see that feature in Spring. It would be very helpful for testing TSI.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post 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
User avatar
tow_dragon
Posts: 45
Joined: 05 May 2006, 13:53

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

The LUA control panel will allow you to do what you want.
Post Reply

Return to “Feature Requests”