1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-21 15:37:46 +00:00
kawari/resources/scripts/commands/debug/SetPos.lua
The Dax 80885f0eeb Port the nudge gm/debug command from Project Meteor Server.
It's a command that moves the user forward, backward, up, or down a specified amount of yalms.
It's quite helpful for exploration convenience, and doesn't replace setpos, rather, it's meant to complement it.
The set_position function was also extended to allow for lua code to specify the rotation/direction facing.
2025-06-18 12:55:18 -04:00

4 lines
170 B
Lua

function onCommand(args, player)
local parts = split(args)
player:set_position({ x = tonumber(parts[1]), y = tonumber(parts[2]), z = tonumber(parts[3]) }, 0)
end