Difference between revisions of "GetFormFromFile - Game"

Jump to navigation Jump to search
576 bytes added ,  02:18, 22 August 2012
Added note per talk page/linked FormID Array example
imported>JustinOther
m (→‎Examples: Wording)
imported>JustinOther
(Added note per talk page/linked FormID Array example)
Line 68: Line 68:
*If asFilename is not loaded, it will be reported in one's log.
*If asFilename is not loaded, it will be reported in one's log.
*Don't forget to cast if setting a property to any given form type with GetFormFromFile.
*Don't forget to cast if setting a property to any given form type with GetFormFromFile.
*Almost invariably, a plugin will have a form with 0x00000800 or 0x00000D62 as its FormID. The latter for a plugin that is masterless when its first form is created and the former when another plugin is loaded at that time. Checking for both FormIDs in most plugins will suffice to merely determine if asFileName is loaded, but there's always the possibility the first form added gets deleted in which case you'd get a false negative. Whenever possible, use a verified FormID that is likely to remain in asFileName.
== See Also ==
== See Also ==
*[[Game Script]]
*[[Game Script]]
*[[GetForm - Game]]
*[[GetForm - Game]]
*[[GetFormID - Form]]
*[[GetFormID - Form]]
*[[Arrays (Papyrus)#Creating_a_FormID Array|FormID Array]]
Anonymous user

Navigation menu