tibia-client/modules/game_playermount/playermount.lua

29 lines
494 B
Lua
Raw Normal View History

function init()
g_keyboard.bindKeyDown('Ctrl+R', toggleMount, gameRootPanel)
end
function terminate()
g_keyboard.unbindKeyDown('Ctrl+R', gameRootPanel)
end
function toggleMount()
local player = g_game.getLocalPlayer()
if player then
player:toggleMount()
end
end
function mount()
local player = g_game.getLocalPlayer()
if player then
player:mount()
end
end
function dismount()
local player = g_game.getLocalPlayer()
if player then
player:dismount()
end
2012-07-15 16:28:15 +02:00
end