Hello there, I have an issue with your builder event.
I imported it to get the builder when the building is finished, but while reading the replies I learned that it only work for start.
So how to detect at all the unit finishing the building ?
I need it to detect if a building was created through item or not.
In theory, it is very simple : if the builder is a hero -> item, else peon.
But in practice, when a building is done the builder is null...
Your system disabled the only thing I needed at first.
Unless Blizzard finally stops eating glue, I would like to know if I have to find another solution.
I could use a different building ID in the item, but if someone wants a generic behaviour we have to clone EVERY unit in the map !
Construction-finish event is a different thing. I believe it has even more nuances to it and is outside of the scope of the library.
In regard to differentiating between buildings spawned via item-order, check IsBuildOrder() [1] and its usage within my ConstructEvent.j.
[1]: war3libs/src/ConstructEvent.j at master · crojewsk/war3libs