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