purpose of begin gameMode ?

Post » Sat May 28, 2011 12:07 pm

I should edit the title to "Multiple Begin gameMode" blocks.

I sometimes see multiple "begin gameMode ... end" blocks in scripts. What's the purpose of this? does that mean each block is executed simultaneously?
User avatar
carla
 
Posts: 3345
Joined: Wed Aug 23, 2006 8:36 am

Post » Sat May 28, 2011 8:09 pm

The compiler would likely make only one gamemode block from the mess. Only one gameMode block is needed in a single script.

Only one script will run at a time, not simultaneously. Its a script language, not a full fledged programming language.
User avatar
JERMAINE VIDAURRI
 
Posts: 3382
Joined: Tue Dec 04, 2007 9:06 am

Post » Sat May 28, 2011 5:36 pm

The compiler would likely make only one gamemode block from the mess. Only one gameMode block is needed in a single script.

Only one script will run at a time, not simultaneously. Its a script language, not a full fledged programming language.


Thanks, so I guess it's unnecessary at best?
User avatar
Tanika O'Connell
 
Posts: 3412
Joined: Fri Jan 26, 2007 1:34 am

Post » Sat May 28, 2011 10:12 am

Yes, totally unecessary.
You would use the value of a variable to determine if you want to execute sections of the gameMode block or not.
User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm


Return to IV - Oblivion