Skip to content
User Avatar
#3668
Auto-translated
The error "Wrong type of argument 1, when calling function GetHeroName()" is related to the fact that when there is no defending hero (battle with neutral creatures), GetDefenderHero returns nil, and GetHeroName must receive a hero's name as its first parameter. When nil is passed to it, it throws an error. Therefore, a check is needed to ensure that the variable is not nil (code above).
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________