Add animations for third person view
authorBlockMen <nmuelll@web.de>
Fri, 11 Apr 2014 23:17:54 +0000 (01:17 +0200)
committerBlockMen <nmuelll@web.de>
Fri, 11 Apr 2014 23:17:54 +0000 (01:17 +0200)
mods/default/player.lua

index d7426d8eb43d0b2a14c75ace98f9458a99c2676d..f02e0f466318d156fc4655b5b7dd654272ba00e1 100644 (file)
@@ -141,6 +141,7 @@ end
 -- Update appearance when the player joins
 minetest.register_on_joinplayer(function(player)
        default.player_set_model(player, "character.x")
+       player:set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, 30)
 end)
 
 minetest.register_on_leaveplayer(function(player)