ListGetFormIndex

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the index for the specified form if it is found exactly in the specified form list, otherwise returns constant -1 (not found).

Syntax

[help]
(int) ListGetFormIndex formlist:ref form:ref

Example

int iIndex
set iIndex to ListGetFormIndex GoodspringersList, SunnyREF

Notes

  • The first form in the list is at index 0, and the last is equal to (ListGetCount - 1).

See Also