Also, can I for instance have one script that contains all my 'multipurpose' routines/variables and use them from other scripts (as long as they are added to the script list?)
Another thing I was wondering about, when I create a 2 dimensional array, and I initialise each value to 0, the script seems to hang for a second or 2 in the middle (about halfway through the array).. I use the below to init the array..
- Code: Select all
BYTE level_map[2000];
for (int i = 0; i < 25; i++) {
for ( int j = 0; j < 80; j++ ) {
int index = ((i*80)+j);
level_map[index] = 0;
PrintF( "Array(%u,%u|%u): %u.", j, i, index, level_map[index] );
}
}
Any ideas what would cause this ? Or any hints on doing it better ?