Advertisement
Dudugz-Contistente

Untitled

Oct 11th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function eventKeyboard(name,key,down,x,y)
  2. shoot = (key == 32 and true or false)
  3. id = (shoot and tfm.exec.addShamanObject(34, x + (tfm.get.room.playerList[name].isFacingRight and 10 or -10), y, 0,tfm.get.room.playerList[name].isFacingRight and 20 or -20) or nil)
  4. end
  5.  
  6. function eventNewPlayer(name)system.bindKeyboard(name,32,true)end
  7. table.foreach(tfm.get.room.playerList,eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement