UnitCreate, UnitDiscover and UnitShow at the same time

34 views
Skip to first unread message

Enrique López Mañas

unread,
Feb 21, 2011, 5:04:52 PM2/21/11
to bwapi
Hello,

I'm running BWAPI 3.4, together with Starcraft BW 1.16.1 and
ChaosLauncher. Pretty much the standard configuration. Trying to
detect a event when I create a unit in order to handle it, I
discovered that every time a unit is created, the following three
events are triggered:

1.- UnitCreate
2.- UnitDiscover
3.- UnitShow

I would expect that the three events should trigger when the unit can
be finally used (that means, the unit is available at the map).
Triggering this effects when the unit is still being created doesn't
make so much sense, or does it? Is this the only way to deal with it?

Best,

Enrique

zhe wang

unread,
Jul 16, 2012, 11:54:48 PM7/16/12
to bw...@googlegroups.com
Currently, I only know one way to check an unit that can be finally used.
That is in onFrame() function, use unit->isComplete() to make sure that...
Reply all
Reply to author
Forward
0 new messages