Use the entity. prefix on any variables to access the thingy from any thread.
Example:
Code:
doSpawn()
{
self thread doCrap1(); //When this is run, self.someThing is initialized
self thread doCrap2(); //By the time it runs this, it should be able to access self.someThing since it's a 'global variable'
}
doCrap1()
{
self.someThing = 1;
}
doCrap2()
{
self iPrintLnBold(self.someThing);
}
/marked as solved
If you need to ask anymore questions or need something to be cleared let me know otherwise, tell me to close the thread.