mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
fix transform:set_pos
This commit is contained in:
parent
a105a4f2c7
commit
ee768f878c
3 changed files with 13 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue