HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Has array length any effect?

11-29-2006, 03:33 PM#1
Waldbaer
Hello,
I just wonder, does the length of an array, that you can set in the GUI variables window have any effect on the variable itself?
I assume, that the only difference is that the array elements outside the "size" are not initialized automatically. Is that right? Any other effects?

Thanks for the info.
11-29-2006, 03:45 PM#2
shadow1500
The actual length will always be 8191. The GUI length is just for initilizing the "initial value" of arrays, it is done in the "InitGlobals" function in the script. Don't ever use high values for array lengths, because you will increase the op count by a lot which can cause a thread crash.
11-29-2006, 10:00 PM#3
Waldbaer
OK thanks. So if you initialize the array manually, the size of it in GUI does not care. Nice!