Does a scripts with a GameMode block need to be attached to

Post » Thu May 03, 2012 7:44 pm

Hi

Since GameMode blocks are executed every frame, I thought if I could make script that is checked every frame but only run when a global variable flag is set. I just added a script in GECK and put in the condition and the action I wanted, but it seems that FO3 ignores the script completely, regardless of whether the flag is set or not. Do I need to make an object/reference and attach the script to that?

Cheers
Jason
User avatar
Andrew Lang
 
Posts: 3489
Joined: Thu Oct 11, 2007 8:50 pm

Post » Thu May 03, 2012 6:50 pm

It needs something to run on. Easiest thing to do for invisible scripts are quest scripts.
User avatar
Ebou Suso
 
Posts: 3604
Joined: Thu May 03, 2007 5:28 am

Post » Thu May 03, 2012 9:19 pm

Thanks - I was just looking at quest scripts now, in fact. But I think that may be a problem when the quest is completed.

If I didn't want to use a quest script, then what would be the next easiest way?
User avatar
Star Dunkels Macmillan
 
Posts: 3421
Joined: Thu Aug 31, 2006 4:00 pm

Post » Thu May 03, 2012 6:09 pm

A quest script is the only way to get a global script to continually run regardless of where you are. If you don't tell the quest the script is attached to to complete, the script will continue to run.

And don't get confused by me saying quest. Im referring to quests as game data, not the actual quests you do in game.

Just set up a new quest, start game enabled, attach your script, and you are good to go.
User avatar
Nick Tyler
 
Posts: 3437
Joined: Thu Aug 30, 2007 8:57 am

Post » Thu May 03, 2012 11:49 pm

Brilliant, thanks!
User avatar
Taylor Thompson
 
Posts: 3350
Joined: Fri Nov 16, 2007 5:19 am


Return to Fallout 3