feat(lib): update examples

This commit is contained in:
2025-03-06 21:48:22 -05:00
parent 492fecc32c
commit 944f595841
8 changed files with 531 additions and 36 deletions

View File

@@ -3,16 +3,9 @@ function look_at_player(name)
if player then
player.position.y = player.position.y + 1
client:look_at(player.position)
else
client:chat(string.format("/w %s player not found!", sender))
end
end
function go_to_player(name, opts)
local player = get_player(name)
if player then
client:go_to(player.position, opts)
else
client:chat(string.format("/w %s player not found!", sender))
end
function go_to_player(name, go_to_opts)
client:go_to(get_player(name).position, go_to_opts)
end