ayrin
1
Does it give you any errors? Also, have you tried putting a console.log()
directly before the fishing()
call to see if your code even makes it there?
ayrin
3
It just says that fishing is not a function…and i don’t get why
Er… You have player.fishing
defined twice. L67 and L1411
this.Mearth=1;
this.hunting=3;
this.huntingAdv=0;
this.fishing=0;
this.fishingAdv=0;
this.blades=0;
this.bladesAdv=0;
fishing: function () {
this.state="fishing";
this.model.animation.play("sit.json", this.blendTime);
this.model.animation.speed =0.2;
this.model.animation.loop = true;
this.entity.findByName('Fishing rod').enabled=true;
app.root.findByName('Root').script.Output.drawProgress(this.actTime);
},
ayrin
5
ooops missed that…too many variables…thanks a lot @yaustar