Author |
Message |
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Global Scripts?
Is it possible to have a global script that will run without you having to create an object with the script attached?
|
Wed Jan 06, 2010 4:51 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Global Scripts?
If you attach it to a scene, then yes.
Alternately, you can call dofile with some kind of thing. But that still requires you to have some kind of object.
General purpose scripts across all scenes are a no-go, unfortunately.
|
Wed Jan 06, 2010 4:52 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Global Scripts?
Thanks for the quick reply. Quote: General purpose scripts across all scenes are a no-go, unfortunately. Hmm, that stinks, oh well. Perhaps I can make the object and name it as global and check for it.
|
Wed Jan 06, 2010 4:58 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: Global Scripts?
Maybe threads would work.
|
Sun Jan 10, 2010 2:36 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Global Scripts?
What are those?
|
Sun Jan 10, 2010 3:41 am |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
Re: Global Scripts?
We're in a thread right now.
... okay, joking aside, a thread is basically a processing idea. Your computer has processes, which are the different programs and services that are running. Inside a program, there can be multiple threads, which is basically one program running two different bunches of code at the same time. It's a parallel processing thing.
HOW this would help us here I have no clue.
|
Tue Jan 12, 2010 12:19 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: Global Scripts?
Lua has threads. Well. Kinda.
|
Tue Jan 12, 2010 7:40 am |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Re: Global Scripts?
Lua has an unofficial which allows for process threading. However, it involves recompiling the entire Lua engine. Whether you can achieve this or not by simply overwriting the DLLs that come with CC, I'm not too sure.
|
Wed Jan 13, 2010 12:23 am |
|
|
|