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 193 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 1926 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now