added facing sync and fixed use of player animations lua script