local player minetest.register_globalstep(function(dtime) if minetest.localplayer and not player then player = minetest.localplayer print("mumble id "..player:get_name()) print("mumble context "..minetest.get_server_info().ip..":"..minetest.get_server_info().port) end if player then local player_pos = player:get_pos() or {x=0, y=0, z=0} local player_look = {x=0, y=0, z=0} local camera_pos = {x=0, y=0, z=0} local camera_look = {x=0, y=0, z=0} if minetest.camera then camera_pos = minetest.camera:get_pos() camera_pos.x = (camera_pos.x/10) camera_pos.y = (camera_pos.y/10) camera_pos.z = (camera_pos.z/10) camera_look = minetest.camera:get_look_dir() player_look = camera_look end print("p p ["..(player_pos.x).." "..(player_pos.y).." "..(player_pos.z).."]") print("p l ["..(player_look.x).." "..(player_look.y).." "..(player_look.z).."]") print("c p ["..(camera_pos.x).." "..(camera_pos.y).." "..(camera_pos.z).."]") print("c l ["..(camera_look.x).." "..(camera_look.y).." "..(camera_look.z).."]") print("mumble submit") end end)