Auto-translated
yes, I'm attaching it now, but the issue was with the file location – I moved it from map_name/Maps/SingleMissions to just map_name/ and it started working.
Added 7 hours ago
How does the combatReadyPerson() function work?
Code:
It doesn't work because currentUnit always takes a zero value, although combatReadyPerson() should return a string with the name of the unit at the beginning of the battle.
Added 7 hours ago
How does the combatReadyPerson() function work?
Code:
function Start()
...
currentUnit = combatReadyPerson()
if(IsHero(currentUnit)) then
...
It doesn't work because currentUnit always takes a zero value, although combatReadyPerson() should return a string with the name of the unit at the beginning of the battle.
Нет войне.