SabrehavenServer/data/talkactions/scripts/teleport_to_creature.lua
2019-01-16 17:16:38 -05:00

15 lines
285 B
Lua

function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local target = Creature(param)
if target == nil then
player:sendCancelMessage("Creature not found.")
return false
end
player:teleportTo(target:getPosition())
return false
end