GetFormID - Form
Revision as of 15:47, 12 January 2016 by imported>Pufthemajicdragon (Cleaned up notes text, making it easier to understand.)
Member of: Form Script
Returns this form's form ID.
SyntaxEdit
int Function GetFormID() native
ParametersEdit
None
Return ValueEdit
The form ID of this form.
ExamplesEdit
; Obtains the form id of the main quest
int formID = mainQuest.GetFormID()
NotesEdit
- The value returned by GetFormID is always in decimal. This can be confusing to anyone expecting the return value to be the hex value for a form found in the Creation Kit. You will have to convert the value yourself. This can be easily done with the windows calculator, by selecting "View → Programmer" and selecting "Dec", pasting the value in, and then selecting "hex".
Example:
Int myFormID = SomeTree.GetFormID()
;result...
768339 = BB953; or 000BB953 in the editor.