Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system.bindKeyboard(n, 3, true, true)
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- function eventKeyboard(n,key,down,Px,Py)
- if key == 3 then
- if tfm.get.room.playerList[n].isFacingRight then
- tfm.exec.addShamanObject(10, Px+5, Py-3, 0, 20, 0)
- else
- tfm.exec.addShamanObject(10, Px-5, Py-3, 0, -20, 0)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement