Created
September 12, 2016 19:36
-
-
Save Patosito/e3a85fbe92ae45616da5d713e25ee806 to your computer and use it in GitHub Desktop.
Teleport con click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() | |
for name in pairs(tfm.get.room.playerList) do | |
eventNewPlayer(name) | |
end | |
end | |
function eventNewPlayer(name) | |
system.bindMouse(name) | |
end | |
function eventMouse(name, mx, my) | |
tfm.exec.movePlayer(name, mx, my) | |
end | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment