Skip to content
User Avatar
#3774
Auto-translated
Azgalor, you can pass a table directly to the function:
   
function NoFlee(heroeslist)
for key, heroes in heroeslist do
if IsObjectExists( heroes ) ~= nil then
DenyAIHeroFlee( heroes, 1 )
print("<color=blue>Герой ", heroes, " <color=blue>больше не покидает бои пока не погибнет")
end
end
end

-- Пример использования
NoFlee({n1, n2, n3});
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо

Statistics

Welcome our newest member: leyu