fix animation cut

This commit is contained in:
2021-04-06 18:59:17 +02:00
parent b2d82b8e0a
commit 7347c0c1af

View File

@@ -68,10 +68,13 @@
blockInput = true;
}
} else if (!loop && player.isPlayingAnim(animDict, animName, 3) && !pair) {
let a = setInterval(function () {
if (player == mp.players.local) {
blockInput = false;
mp.events.callRemote("CLIENT:ClearAnimationData", player);
}
clearInterval(a);
}, duration);
}
});
}, 100);
@@ -79,6 +82,7 @@
mp.events.addDataHandler("AnimationData", (entity: PlayerMp, string) => {
entity.clearTasksImmediately();
if (string == null) {
blockInput = false;
return;
}