September 23, 20178 yr I've made another class that aids me in getting some work done in my script, but I need it to sleep as it would if all my code was in the main class. Is this possible? Normally I would do import main; but it doesn't work in this case. The sleep function comes from the Script extension of main. Thank you for your time Edited September 23, 20178 yr by mr magoo
September 23, 20178 yr Read up on constructors. You need to pass the scripts instance to every class that needs to use it.
September 24, 20178 yr 1 hour ago, mr magoo said: I've made another class that aids me in getting some work done in my script, but I need it to sleep as it would if all my code was in the main class. Is this possible? Normally I would do import main; but it doesn't work in this case. The sleep function comes from the Script extension of main. Thank you for your time It's a static method. You don't need an instance
Create an account or sign in to comment