function test()
local importantValue = random(10)
Trigger(4, "TestObject", "ImportantFunc")
ImportantFunc = function(hero, obj)
local value = %importantValue
print(hero, obj, value)
end
end
--This way, we pass the two original arguments + the important value from the parent function to the callback.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________