Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(p, 69, true, true)
- end
- time = os.time() + 2500
- function eventKeyboard(p, keyCode, down, x, y)
- if keyCode == 69 then
- if os.time() > time then
- if tfm.get.room.playerList[p].isFacingRight == true then
- time = os.time() + 2500
- tfm.exec.addShamanObject(95,x+20,y,true, 10, -5)
- else
- tfm.exec.addShamanObject(95,x-20,y,true,-10, -5)
- time = os.time() + 2500
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement