sleep
This commit is contained in:
@@ -49,14 +49,14 @@
|
||||
setInterval(() => {
|
||||
mp.players.forEachInStreamRange(
|
||||
(player) => {
|
||||
if (!player.animationData)
|
||||
if (!player.getVariable("AnimationData"))
|
||||
return;
|
||||
|
||||
let index = mp.game.joaat(player.animationData.name);
|
||||
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
||||
let currentAnim = animationSyncData.animations[index];
|
||||
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
||||
|
||||
if (player.animationData.loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||
loadAnimDict(animDict, function () {
|
||||
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
|
||||
});
|
||||
@@ -79,7 +79,6 @@
|
||||
break;
|
||||
|
||||
let { id, name, animDict, animName, duration, loop, flag } = animData;
|
||||
entity.animationData = { name: name, loop: loop };
|
||||
|
||||
loadAnimDict(animDict, function () {
|
||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, -1, parseInt(flag), 0, !1, !1, !1)
|
||||
|
||||
Reference in New Issue
Block a user