Difference between revisions of "Talk:A beginner's guide, lesson 1 - The Construction Set Primer"

imported>Pendraia
imported>DragoonWraith
Line 67: Line 67:


[[User:Pendraia|Pendraia]] 22:36, 9 July 2010 (EDT)
[[User:Pendraia|Pendraia]] 22:36, 9 July 2010 (EDT)
:The answer to 2 is easier, so I'll start with that - you shouldn't use persistent references unless you need them for some reason, simple as that. Actors default to persistent, and usually should be, though generic baddies might not need it.
:Other than that, persistence is necessary when you want something ''else'' to be able to refer to the reference from somewhere else. A script, a quest, an AI package, if they have to use the reference and you cannot guarantee that they will ''only'' ever be run in the same cell as the reference, that reference needs to be persistent. Oblivion only loads a certain number of cells at a time, and referencing anything that not loaded will cause a crash. Flagging the reference persistent means that Oblivion will ''always'' keep it in memory - which means it's constantly using memory, so don't use it unless necessary, but also means that scripts/quests/AI can use the reference even when the player's in a different cell.
:Does that clarify things?
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 13:39, 10 July 2010 (EDT)