Checking unit's ID during game
Posted: 01 Oct 2006, 19:46
I would be happy to see that feature in Spring. It would be very helpful for testing TSI.
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
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