refactor: random fixes and usage improvements
This commit is contained in:
18
lib/movement.lua
Normal file
18
lib/movement.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
function look_at_player(name)
|
||||
local player = get_player(name)
|
||||
if player then
|
||||
player.position.y = player.position.y + 1
|
||||
client:look_at(player.position)
|
||||
else
|
||||
client:chat("player not found!")
|
||||
end
|
||||
end
|
||||
|
||||
function goto_player(name)
|
||||
local player = get_player(name)
|
||||
if player then
|
||||
client:goto(player.position)
|
||||
else
|
||||
client:chat("player not found!")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user