Skip to content
Snippets Groups Projects
  • MirceaKitsune's avatar
    0a020dbc
    Properly read the mesh from LUA. · 0a020dbc
    MirceaKitsune authored
    Players can now be set to meshes using the following test script:
    
    function switch_player_visual()
    		prop = {
    			mesh="player.obj",
    			texture="player.png",
    			visual="mesh",
    		}
    	for _, obj in pairs(minetest.get_connected_players()) do
    		obj:set_properties(prop)
    	end
    	minetest.after(1.0, switch_player_visual)
    end
    minetest.after(1.0, switch_player_visual)
    0a020dbc
    History
    Properly read the mesh from LUA.
    MirceaKitsune authored
    Players can now be set to meshes using the following test script:
    
    function switch_player_visual()
    		prop = {
    			mesh="player.obj",
    			texture="player.png",
    			visual="mesh",
    		}
    	for _, obj in pairs(minetest.get_connected_players()) do
    		obj:set_properties(prop)
    	end
    	minetest.after(1.0, switch_player_visual)
    end
    minetest.after(1.0, switch_player_visual)