debug
This commit is contained in:
@@ -22,13 +22,13 @@
|
||||
entity.animationData = { name: name, playOnStream: playOnStream };
|
||||
}
|
||||
},
|
||||
stopAnim: function (entity) {
|
||||
stopAnim: function (entity, index) {
|
||||
mp.gui.chat.push("in StopAnim");
|
||||
mp.game.wait(100);
|
||||
if (!entity.animationData)
|
||||
return;
|
||||
|
||||
var currAnim = this.animations.find(anim => anim.name == entity.animationData.name);
|
||||
var currAnim = this.animations[index];
|
||||
if (currAnim) {
|
||||
let { id, name, animDict, animName, playOnStream, loop, flag } = currAnim;
|
||||
|
||||
@@ -66,15 +66,15 @@
|
||||
});
|
||||
|
||||
mp.events.addDataHandler("AnimationData", (entity, string) => {
|
||||
let index = mp.game.joaat(string);
|
||||
mp.gui.chat.push("inData Handler");
|
||||
mp.game.wait(100);
|
||||
animationSync.stopAnim(entity);
|
||||
animationSync.stopAnim(entity, index);
|
||||
|
||||
mp.gui.chat.push("stopAnim done");
|
||||
mp.game.wait(100);
|
||||
mp.gui.chat.push(string);
|
||||
mp.game.wait(100);
|
||||
let index = mp.game.joaat(string);
|
||||
|
||||
let animData = animationSync.animations[index];
|
||||
mp.gui.chat.push("searching Anim data");
|
||||
|
||||
Reference in New Issue
Block a user