#Recursion

1 messages · Page 1 of 1 (latest)

plucky hemlock
#

how can you avoid recursion in this situation?

sand depot
#
function modifier_name:somefunc()
    -- avoid recursive
    if self.lock then return 0 end

    self.lock = true
    local armor = self:Recursive()
    self.lock = false

    -- do something else
end