ForbodingAngel

Untitled

May 11th, 2014
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. --Randomized unit explosions... this will probably fail miserably
  2. local randomizedExplosions = {
  3. smallExplosionGeneric,
  4. mediumExplosionGeneric,
  5. largeExplosionGeneric,
  6. hugeExplosionGeneric,
  7. smallExplosionGenericBlue,
  8. mediumExplosionGenericBlue,
  9. largeExplosionGenericBlue,
  10. hugeExplosionGenericBlue,
  11. }
  12.  
  13. for name, ud in pairs(UnitDefs) do
  14. ud.explodeAs = randomizedExplosions[math.random(#randomizedExplosions)]
  15. ud.selfDestructAs = randomizedExplosions[math.random(#randomizedExplosions)]
  16. end
Advertisement
Add Comment
Please, Sign In to add comment