Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Hass
- --Made in: 10/01/2020
- --Last update: 18/01/2020
- --[[ Notes:
- Does:
- Explosive balls
- Keys
- Click --> Summons an explosive ball
- ]]--
- toDespawn = {}
- eventLoop = function()
- for k,v in next,toDespawn do
- if os.time() > v[1] then
- local o = tfm.get.room.objectList[v[2]]
- tfm.exec.explosion(o.x,o.y,40,50)
- tfm.exec.removeObject(v[2])
- table.remove(toDespawn,k)
- break
- end
- end
- end
- eventNewPlayer = function(n)
- system.bindMouse(n,true)
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- eventMouse = function(n,x,y)
- table.insert(toDespawn,{os.time() + 800,tfm.exec.addShamanObject(6,x,y)})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement