GetLoadedType

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Empties a form list and then fills it with every form of the given Form Type ID from all loaded plugins.

Optional Index parameter: Passing a value for the 'index' parameter loads only forms from the plugin at that mod index (default: -1 for all plugins).

Optional NoClear parameter: Passing a 1 for the 'noclear' parameter prevents the function from emptying the list before adding forms to it.

Syntax

[help]
GetLoadedType outlist:formList typeID:int index:int noClear:bool 

Or:

GLT outlist:formList typeID:int index:int noClear:bool

Example

GLT MyFormList 24

Will empty MyFormList, then add armors from all loaded plugins to MyFormList.

GLT MyFormList 40 0 1

Will add weapons from mod index 0 to MyFormList, retaining anything already in MyFormList.

Notes

  • When called with typeID = 57 (Cells), returns only interior cells.

See Also