GetListForms

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns an array with entries matching the specified form list.

Syntax

[help]
(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