Skip to content
User Avatar
#2832
Auto-translated
I don't know how to remove units that have been present since the beginning of the battle (you need their scripted name).
You can get a list of enemy creatures using GetCreatures(DEFENDER). For example, for a devil:
local units = GetCreatures(DEFENDER);
for i, unit in units do
local unit_id = GetCreatureType(unit);
if(unit_id == DEVIL_ID) then
removeUnit(unit)
end
end
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо

Statistics

Welcome our newest member: leyu