Unfortunately, this moment cannot be controlled. There is one workaround: add a while 1 do loop in the new thread that counts the number of creatures in each stack and checks if this value matches the previously calculated one. If not, it calls some function, passing the stack name to it.
Thank you very much, I'll think about it. I understand the direction. Nival is strange :) They provide events for unit movement, but not for attack.