Difference between revisions of "GetFormFromFile - Game"

12 bytes added ,  06:35, 29 May 2016
m
→‎Examples: the "cast" was missing in the example, which would give a compiler error.
imported>Plplecuyer
 
imported>Docclox
m (→‎Examples: the "cast" was missing in the example, which would give a compiler error.)
Line 24: Line 24:
; Obtain form 0000ABCD we expect to be added by the KillerBees plugin
; Obtain form 0000ABCD we expect to be added by the KillerBees plugin
; Note the top most byte in the given ID is unused so 0000ABCD works as well as 0400ABCD
; Note the top most byte in the given ID is unused so 0000ABCD works as well as 0400ABCD
FormList beekillerlist = Game.GetFormFromFile(0x0000ABCD, "KillerBees.esp")
FormList beekillerlist = Game.GetFormFromFile(0x0000ABCD, "KillerBees.esp") as FormList
; If "KillerBees.esp" is not loaded the form will be NONE. Otherwise, add our weapon to the list.
; If "KillerBees.esp" is not loaded the form will be NONE. Otherwise, add our weapon to the list.
if ( beekillerlist )
if ( beekillerlist )
Anonymous user