abdulr 0 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 ;
Eclipseop 194 Posted December 31, 2018 https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
Nuclear Nezz 2105 Posted December 31, 2018 tasks[0] = new FishTask(this); assuming Woodcutting task is in place 0
Recommended Posts
Archived
This topic is now archived and is closed to further replies.