Advertisement
alestane

Example

Apr 4th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1.     function self:Animate(loop)
  2.         if loop ~= self.sequence and self.Sound then
  3.             self.Sound ''
  4.             local loop = loop
  5.             while loop do
  6.                 if self.SoundList[loop] then
  7.                     self.Sound(self.SoundList[loop])
  8.                     break
  9.                 else
  10.                     loop = loop:match("^(.*):[^:]+")
  11.                 end
  12.             end
  13.         end
  14.         return baseAnimate(self, loop)
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement