Guest User

Untitled

a guest
Oct 26th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function switch_player_visual()
  2. prop = {
  3. mesh = "player.x",
  4. textures = {"player.png", },
  5. visual = "mesh",
  6. visual_size = {x=1, y=1},
  7. animation_frames = {0, 100},
  8. animation_speed = 50,
  9. animation_blend = 0,
  10. --animation_bone_position = {"Bone", {x=0, y=0, z=0}},
  11. --animation_bone_rotation = {"Bone", {x=0, y=0, z=0}},
  12. }
  13. for _, obj in pairs(minetest.get_connected_players()) do
  14. obj:set_properties(prop)
  15. end
  16. minetest.after(1.0, switch_player_visual)
  17. end
  18. minetest.after(1.0, switch_player_visual)
Advertisement
Add Comment
Please, Sign In to add comment