Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5226
Auto-translated
Gerter
GetGameVar returns a string value, i.e., '0'. To correctly compare this value with a number, you should write it like this:
if (GetGameVar("morale_bonus") + 0) == 0 then...

Thank you very much, it helped. Damn dynamic type assignment!

By the way, congratulations on winning a prize in the contest, you deserve it!
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________

Statistics

Welcome our newest member: artem

Users Online 2 users 1618 guests