alestane icon

Refactored

alestane | PRO | 04/04/14 02:55:06 PM UTC | 0 ⭐ | 339 👁️ | Never ⏰ | []
Lua |

320 B

|

None

|

0 👍

/

0 👎

    function self:Animate(loop)
        if loop ~= self.sequence and self.Sound then
            self.Sound ''
            local tag = loop
            while tag do
                if self.SoundList[tag] then
                    self.Sound(self.SoundList[tag])
                    break
                else
                    tag = tag:match("^(.*):[^:]+")
                end
            end
        end
        return baseAnimate(self, loop)
    end

Comments