Difference between revisions of "Script Processing"

Jump to navigation Jump to search
294 bytes added ,  12:05, 8 March 2009
no edit summary
imported>Wrye
imported>Skyranger-1
;Doors: A bit of a special case, these scripts are processed like other scripts on references (every frame when loaded), but they will also be processed once any time an actor activates the door.
;Objects in Containers: Processed when the container's script is processed -- so, items on actors are processed when the actor is processed; items in other containers are processed every frame when the cell is loaded.
;[[Quest scripts|Quests]]: Processed every 5 seconds (by default) when the quest is running. You can change how often quest scripts are processed by changing a default variable in the quest's script. When a game is first loaded there will be a brief period when quest scripts will not run, even if fQuestDelayTime is very small. The first time a game is loaded in a given game session this delay will be longer, perhaps 5 seconds or so. This does not happen for other script types.
;References: Processed every frame when its cell is loaded, not at all when the cell is not loaded. So these scripts run only when the player is nearby (which means these are often a good place to put relatively expensive scripts, doing things like distance checks).
 
 
'''Notes/Questions'''
* This does not appear to happen for non-persistent refs.
* How about actors with no low level processing?
 
Anonymous user

Navigation menu