Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.
I want to make a script that starts a new thread (called "myCustomThread"), if another instance of this script is then launched instead of creating another thread it searches and takes the one that the first script created to access it's variable. This is what I have: http://pastebin.com/pz9wEYKb . It obviously gives an error at line #25 because Thread class doesn't have getBool() functions. But if I change myThread to CustomThread class and cast the found thread (line 40) to CustomThread it breaks. Anyone have ideas how should I do this?