Difference between revisions of "GetListForms"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(created)
 
imported>Odessa
(added foreach example)
 
Line 15: Line 15:


let Ammo_Forms := GetListForms AmmoList357Magnum
let Ammo_Forms := GetListForms AmmoList357Magnum
</pre>
This function is convenient for looping through form lists:
<pre>
array_var Entry
ref rForm
foreach Entry <- (GetListForms SomeFormList)
    let rForm := *Entry
    ; rForm will be each form in the form list
loop
</pre>
</pre>
==See Also==
==See Also==

Latest revision as of 17:01, 21 March 2015

< [[::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

[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