GetFormIDString
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the FormID number as a string in hexadecimal for the specified form (Reference or Base Form).
Syntax
(string) GetFormIDString ToGet:form
Example
string_var formid let formid := GetFormIDString SunnyREF
; if you wanted to convert this to an int, you can use: int intFormID let intFormID := ToNumber formid, 1
Notes
- You can use this to convert a form to a string/int for use as an array map key. However, beware that FormIDs may change on game load, dependent on load order.
- Will not compile when you pass an explicit form or ref as the parameter, only a ref var.