Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function immobilize(name,time,x,y)
- local time = time*1000 or 3000 --time or the conjurations
- local x= x or tfm.get.room.playerList[name].x --position x to move the player
- local y=y or tfm.get.room.playerList[name].y --position y to move the player
- tfm.exec.movePlayer(name,x,y)
- for k = -1,1 do
- local i,o = -2,2
- tfm.exec.addConjuration(x/10+k,y/10+o,time)
- tfm.exec.addConjuration(x/10+k,y/10+i,time)
- tfm.exec.addConjuration(x/10+o,y/10+k,time)
- tfm.exec.addConjuration(x/10+i,y/10+k,time)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment