ForbodingAngel

Untitled

May 11th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local randomizedExplosions = {
  2. smallExplosionGeneric,
  3. mediumExplosionGeneric,
  4. largeExplosionGeneric,
  5. hugeExplosionGeneric,
  6. smallExplosionGeneric-blue,
  7. mediumExplosionGeneric-blue,
  8. largeExplosionGeneric-blue,
  9. hugeExplosionGeneric-blue,
  10. },
  11.  
  12. for name, ud in pairs(UnitDefs) do
  13. ud.explodeAs = randomizedExplosions[math.rand(#randomizedExplosions)],
  14. ud.selfDestructAs = randomizedExplosions[math.rand(#randomizedExplosions)],
  15. end
Advertisement
Add Comment
Please, Sign In to add comment