Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventNewPlayer(name)
- for i,key in ipairs({83,40,69}) do
- tfm.exec.bindKeyboard(name,key,true,true)
- end
- end
- function eventKeyboard(name,key,down,x,y)
- if key==83 or key==40 or key==69 then
- if tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.addShamanObject(19,x,y)
- else
- tfm.exec.addShamanObject(20,x,y)
- end
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
Advertisement
Add Comment
Please, Sign In to add comment