push
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
}
|
||||
},
|
||||
stopAnim: function (entity) {
|
||||
mp.gui.chat.push("in StopAnim");
|
||||
mp.game.wait(100);
|
||||
if (!entity.animationData)
|
||||
return;
|
||||
|
||||
@@ -64,11 +66,17 @@
|
||||
});
|
||||
|
||||
mp.events.addDataHandler("AnimationData", (entity, string) => {
|
||||
mp.gui.chat.push("inData Handler");
|
||||
mp.game.wait(100);
|
||||
animationSync.stopAnim(entity);
|
||||
|
||||
mp.gui.chat.push("stopAnim done");
|
||||
mp.game.wait(100);
|
||||
let animData = animationSync.animations.find(anim => anim.name == string);
|
||||
if (!animData)
|
||||
return;
|
||||
mp.gui.chat.push("anim Data found");
|
||||
mp.game.wait(100);
|
||||
|
||||
let { id, name, animDict, animName, playOnStream, loop, flag } = animData;
|
||||
entity.animationData = { name: name, playOnStream: playOnStream };
|
||||
|
||||
Reference in New Issue
Block a user