Difference between revisions of "User:DavidJCobb/Miscellany"

Jump to navigation Jump to search
1,462 bytes added ,  17:51, 18 January 2015
m
no edit summary
imported>DavidJCobb
(USKP forums have a lot of stuff to learn from. Dug up some old info and jammed it onto this page.)
imported>DavidJCobb
m
Line 102: Line 102:
*[http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-6#entry149699 Critter animations]: butterflies and moths use <code>fTakeOff</code>, while dragonflies and fireflies can use <code>fTakeOff</code> or <code>TakeOff</code>.
*[http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-6#entry149699 Critter animations]: butterflies and moths use <code>fTakeOff</code>, while dragonflies and fireflies can use <code>fTakeOff</code> or <code>TakeOff</code>.
*You cannot [[GetAnimationVariableFloat - ObjectReference|get animation variables]] for an object [http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-9#entry150430 if its 3D isn't loaded].
*You cannot [[GetAnimationVariableFloat - ObjectReference|get animation variables]] for an object [http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-9#entry150430 if its 3D isn't loaded].
* [http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-10#entry150967 "We're just going to have to live with the fact the game engine unloads 3D at unexplained times without warning."]
* When a persistent ObjectReference is removed from the game world (e.g. sold to a merchant), [http://afkmods.iguanadons.net/index.php?/topic/3717-skyrim-the-papyrus-function-getparentcell-and-what-may-happen-when-it-runs-on-a-persistent-reference/ its GetParentCell() method may return the cell from which it originated.] It may also return other nonsense results, so try to avoid using the method on a persistent reference.
* [http://afkmods.iguanadons.net/index.php?/topic/3676-skyrim-information-baked-into-saves/#entry145982 Among other things, this post describes best practices for working with vanilla Actors in a mod.]
** Do note [http://afkmods.iguanadons.net/index.php?/topic/3676-skyrim-information-baked-into-saves/page-2#entry145986 the replies], though.
* [http://afkmods.iguanadons.net/index.php?/topic/3676-skyrim-information-baked-into-saves/page-3#entry147426 "Scripts that are fragments for packages never go away, and seem to begin executing on a None package with no conditions."]
* [http://afkmods.iguanadons.net/index.php?/topic/3676-skyrim-information-baked-into-saves/page-3#entry147468 Reportedly,] Skyrim will actually write to your save file when loading it, if it detects that a new mod with script content has been added.


=== Unsorted edge-cases ===
=== Unsorted edge-cases ===
* Be careful about handling things OnCellAttach and OnCellDetach in Riften. [http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-8#entry150257 The city's walkways have you cross back and forth across a cell boundary.]
* Be careful about handling things OnCellAttach and OnCellDetach in Riften. [http://afkmods.iguanadons.net/index.php?/topic/3781-the-critter-thread/page-8#entry150257 The city's walkways have you cross back and forth across a cell boundary.]
** ''The use case dealt with here involves deleting critters when you leave their containing cells. The scripter's attempted solution was to add a timed delay (using OnUpdateGameTime) to the deletion. Return to the cell before the timer has elapsed, and the critter is reused -- the deletion is canceled.''
** ''The use case dealt with here involves deleting critters when you leave their containing cells. The scripter's attempted solution was to add a timed delay (using OnUpdateGameTime) to the deletion. Return to the cell before the timer has elapsed, and the critter is reused -- the deletion is canceled.''
Anonymous user

Navigation menu