Advertisement
Bolodefchoco_LUAXML

[Script] Explosive Balls

Nov 10th, 2016
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 10/11/2016
  3. --Last update: 10/11/2016
  4. --[[ Notes:
  5.     Does:
  6.         Bolas explosivas
  7.     Keys
  8.         Click --> Invoca uma bola explosiva
  9. ]]--
  10.  
  11. toDespawn = {}
  12.  
  13. eventLoop = function()
  14.     for k,v in next,toDespawn do
  15.         if os.time() > v[1] then
  16.             local o = tfm.get.room.objectList[v[2]]
  17.             tfm.exec.explosion(o.x,o.y,40,50)
  18.             tfm.exec.removeObject(v[2])
  19.             table.remove(toDespawn,k)
  20.             break
  21.         end
  22.     end
  23. end
  24.  
  25. eventNewPlayer = function(n)
  26.     system.bindMouse(n,true)
  27. end
  28. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  29.  
  30. eventMouse = function(n,x,y)
  31.     table.insert(toDespawn,{os.time() + 800,tfm.exec.addShamanObject(6,x,y)})
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement