Skip to content
User Avatar
#3875
Auto-translated
Hello everyone! I have a question. Is it possible to prevent the main hero from giving away his entire army to a secondary hero, and vice versa – to prevent the secondary hero from giving his army to the main hero?

Added 1 minute ago
JustPeasant
Good afternoon. Does anyone know if it's possible to redefine unit behavior in hooks? For example, a unit fires, and then a certain effect is applied to the unit that received damage. I only saw UnitMove, which is then divided into "sub-hooks". But in all of them, only the sUnitName parameter is passed. So, it seems that you can only control the attacking unit, but not the unit being attacked. Is it possible to find out who is the unit being attacked and how much damage it received?
I think it might be possible to do this, but I don't remember how.

Мои карты:
Падший рыцарь
Сердце Хаоса

Мои моды:
Визуальные:
Изменение внешнего вида героев-некромантов
Существа-жители и кое-что по мелочи в городах Ордена Порядка, Некрополиса и Инферно

NCF-существа:
Странствующие рыцари
Наемники