GetFormFromMod

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(form:ref) GetFormFromMod modFileName:string formID:hexString

Attempts to look up and return a form defined in another mod, prepending the two-digit mod index to the formID. The formID is passed in hexadecimal format, i.e. 0001A46B. The first two digits of the formID are ignored and can be omitted. The formID must be passed as a literal value as script variables don't have the precision necessary to store all possible formIDs. Pass "NONE" as the file name to look up a dynamic form in the saved game (mod index 0xFF, for example cloned forms). Using GetFormFromMod also works with temporary references even if they are not loaded. The returned ref variable can be used in scripts thus bypassing temporary reference limitation for scripting purposes.