Calculate build time?

Calculate build time?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Calculate build time?

Post by hughperkins »

Kindof a newbie question but.... how does one calculate build time for a unit? I guess there are two factors: something that indicates how fast a constructor builds, vs the "build time" of the unit?

Maybe something like buildtime/workertime?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Correct, unit->buildTime / (buildSpeed sum of all assisting builders). Note that it's clamped at 32*, stuff takes a minimum of one slowUpdate() cycle* to build.

*thanks AF
Last edited by Kloot on 12 Jun 2007, 02:17, edited 1 time in total.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

32 frames*
Post Reply

Return to “AI”