Factories: Getting build percent and or unitID of unit?

Factories: Getting build percent and or unitID of unit?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Factories: Getting build percent and or unitID of unit?

Post by Erik »

*of the unit currently being built that is.
Possible already?
If not i'd like the unitID sent to StartBuilding() as an argument.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Factories: Getting build percent and or unitID of unit?

Post by FLOZi »

Code: Select all

Spring.GetUnitIsBuilding 
 ( number unitID ) -> nil | number unitID
returns what unit a constructor/factory is currently building
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: Factories: Getting build percent and or unitID of unit?

Post by Erik »

thx
Post Reply

Return to “Feature Requests”