GetRawFormIDString

From GECK
(Redirected from GetFormIDString2)
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the FormID number as a string in hexadecimal for the specified ref variable or array element, regardless of whether or not it is a valid FormID.

Syntax

[help]
(string) GetRawFormIDString ToGet:Multi

Example

string_var formid
let formid := GetRawFormIDString MyArray[0] 

Notes

  • You can use this to convert a form for use as an array map key. However, beware that FormIDs may change on game load, dependent on load order.
  • The function will fail in-game (return 00000000) when you pass an explicit form or reference as the parameter. It will work with a ref var or an array element.

See Also