Skip to content
User Avatar
#3612
Auto-translated
I'll immediately warn you that "random" is already a reserved variable name; it's the name of a function.
function Armia()
local creatures = {{id1, quantity}, {id2, quantity}, etc}
if GetDate(3)==3 then
creature = creatures[random(length(creatures))+1] --We take a random creature
local id = creature[1] --We get its ID
local amount = creature[2] --And the quantity for this type
CODE that operates with the random ID and quantity
end
end
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________

Statistics

Welcome our newest member: wayal