Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

How to tell what is being built inside a Zerg Egg? #283

Closed lrCritch closed 6 years ago

lrCritch commented 6 years ago

Is there a function call to check what unit type is currently being produced by a Zerg Egg? I can't find it on my own in the API

alkurbatov commented 6 years ago

Hi, @lrc374 I used the following: unit_->orders.front().ability_id == sc2::ABILITY_ID::TRAIN_OVERLORD where unit_ is particular egg.

lrCritch commented 6 years ago

Thanks!!