GetForm - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Game Script

Obtains the form specified by its form ID number.

Syntax[edit | edit source]

Form Function GetForm(int aiFormID) native global

Parameters[edit | edit source]

  • aiFormID: The form ID number of the form we want. (FormID proceeded by 0x) For example Form ID "0001DA07" is given as: 0x0001DA07

Return Value[edit | edit source]

The requested Form, or None if the form ID is not valid.

Examples[edit | edit source]

; Obtain whatever form 0001DA07 is
Form someForm = Game.GetForm(0x0001DA07)

See Also[edit | edit source]