GetListForms

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

A function added by the New Vegas Script Extender.

Description

Returns an array with entries matching the specified form list. Added by NVSE 4.5.

Syntax

(array) GetListForms ToMatch:formlist

Example

array_var Ammo_Forms

let Ammo_Forms := GetListForms AmmoList357Magnum

This function is convenient for looping through form lists:

array_var Entry
ref rForm

foreach Entry <- (GetListForms SomeFormList)
    let rForm := *Entry
    ; rForm will be each form in the form list
loop

See Also