tibia-client/modules/game_playermount/playermount.lua

20 lines
374 B
Lua
Raw Normal View History

PlayerMount = {}
function PlayerMount.init()
g_keyboard.bindKeyDown('Ctrl+R', PlayerMount.toggleMount, gameRootPanel)
end
function PlayerMount.terminate()
2012-07-15 16:28:15 +02:00
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
PlayerMount = nil
end
function PlayerMount.toggleMount()
g_game.mount(not g_game.isMounted())
end
function PlayerMount.dismount()
g_game.mount(false)
2012-07-15 16:28:15 +02:00
end