abdulr 0 Share Posted December 31, 2018 This is how my script starts private Task[] task; public void onStart() { task = new Task[] { new BankLog(this), new CutLogs(this) }; } This is a woodcutting script, this works perfectly fine every task executes perfect without any problems But lets say at some point I want to switch up from woodcutting to fishing How would I go about removing the old task nodes and re-initializing the fish task nodes I want the woodcut task nodes to completely stop and only run the fish task nodes task new new this, new this ; Link to comment Share on other sites More sharing options...
Eclipseop 194 Share Posted December 31, 2018 https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html Link to comment Share on other sites More sharing options...
Nuclear Nezz 2055 Share Posted December 31, 2018 tasks[0] = new FishTask(this); assuming Woodcutting task is in place 0 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.