Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. system.bindKeyboard(n, 3, true, true)
  2. end
  3.  
  4. table.foreach(tfm.get.room.playerList, eventNewPlayer)
  5.  
  6. function eventKeyboard(n,key,down,Px,Py)
  7. if key == 3 then
  8. if tfm.get.room.playerList[n].isFacingRight then
  9. tfm.exec.addShamanObject(10, Px+5, Py-3, 0, 20, 0)
  10. else
  11. tfm.exec.addShamanObject(10, Px-5, Py-3, 0, -20, 0)
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement