This is my code for factory:
function update(self, dt)
if copy <20 then
local pos = vmath.vector3(math.random(108, 1673), 147, 0)
factory.create("#factory", pos)
copy = copy +1
end
end
How can I make my factory to wait few (5-15) seconds until it creates new copy of the prototype?