Skip to content
User Avatar
#2256
Auto-translated
I don't quite understand what's happening in the second example.
hero_level = 1; -- does this assign a value to the variable?

function foo()
hero_level = GetHeroLevel('hero'); -- does the variable equal the hero's level within the function?
end

function bar()
local some_variable = hero_level; -- is a local variable for the function equal to the global variable? (1?)
end
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение

Statistics

Welcome our newest member: artem