bparty Posted July 9, 2013 Share Posted July 9, 2013 Hi, I'm just wondering what the purpose of these 2 methods are? I've written like 4 scripts so far and they work with just the on loop method, so I'm just curious as to what I'm supposed to put in these methods? Link to comment Share on other sites More sharing options...
Skype Posted July 9, 2013 Share Posted July 9, 2013 They are methods you call just once (at the start of the script, when you click Run, and at the end when you click Stop)Within their bodies you could initialize a timer for example, or run a GUI ... A lot of things you can do really! Link to comment Share on other sites More sharing options...
BotRS123 Posted July 10, 2013 Share Posted July 10, 2013 Hi, I'm just wondering what the purpose of these 2 methods are? I've written like 4 scripts so far and they work with just the on loop method, so I'm just curious as to what I'm supposed to put in these methods? Think of onStart as preprocessing. It basically calls the logic once instead of repeatedly calling it like onLoop. onExit is the same as onStart, but for when you exit the script. People mostly use it to leave a goodbye message. Link to comment Share on other sites More sharing options...