fix transform:set_pos

This commit is contained in:
MihailRis
2024-07-11 01:10:23 +03:00
parent a105a4f2c7
commit ee768f878c
3 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -2,10 +2,12 @@ history = session.get_entry("commands_history")
history_pointer = #history
function setup_variables()
local x,y,z = player.get_pos(hud.get_player())
local pid = hud.get_player()
local x,y,z = player.get_pos(pid)
console.set('pos.x', x)
console.set('pos.y', y)
console.set('pos.z', z)
console.set('entity.id', player.get_entity(pid):get_uid())
end
function on_history_up()