I've recently coded firemaking and not totally sure how i could make the player do the lighting logs animation for about a second and then continue moving with the walkTo command.
yea so here is part of the code that i need to add a variable to that stops the animation after about a sec?
Code:
if(c.actionTimer == 0) {
c.startAnimation(733);
c.SpawnObject(c.getX(), c.getY(), objectid, 0, 10);
c.fmwalkto(-1, 0);
c.getItems().deleteItem2(remove, 1);
c.getPA().addSkillXP(xp, c.playerFiremaking);
c.getPA().refreshSkill(c.playerFiremaking);
c.turnPlayerTo(c.getX()+ 1, c.getY());
c.actionTimer = 4;
}