Makin
New Member
- Joined
- Sep 17, 2018
- Messages
- 37
- Solutions
- 1
- Reaction score
- 2
Hello, can someone tell me why this script does not loop
Lua:
antykick = {}
local dance = 1000
local dance1 = 4000
function antykick.anty()
local oldDir = g_game.getLocalPlayer():getDirection()
direction = oldDir + 1
if direction > 3 then
direction = 0
end
addEvent(function() g_game.turn(direction) end)
scheduleEvent(function() g_game.turn(oldDir) end, dance)
return dance1
end
function antykick.connect()
antykick.anty()
end
function antykick.disconnect()
end