fix animation cut
This commit is contained in:
@@ -68,10 +68,13 @@
|
||||
blockInput = true;
|
||||
}
|
||||
} else if (!loop && player.isPlayingAnim(animDict, animName, 3) && !pair) {
|
||||
if (player == mp.players.local) {
|
||||
blockInput = false;
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", player);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user