So, I finished my other problem, and the playertypes are going pretty well, except for one problem. When they play the death animation when they die, it works, except for when they are walking. If it's playing another animation and they die, it glitches up and shows the two animations at once. If you know how to solve this problem, please reply.
Edit: Also, do you know how to make a script so that when the playertype dies, it commands in to play the animation "Death"?
I tried this, but it didn't work:
package fixanim
{
function GameConnection::onDeath(%this, %obj, %sourceObject, %sourceClient, %damageType, %damLoc)
{
Parent::onDeath(%this, %obj, %sourceObject, %sourceClient, %damageType, %damLoc);
%this.playthread(2, root);
}
};
activatepackage(fixanim);