Find - FormList
From Creation Kit
Member of: FormList Script
Finds the specified form in the form list and returns its index or returns -1 if it's not a member.
Int Function Find(Form apForm) Native
- apForm: The form whose index is to be returned.
- apForm's index as an Int.
Int iIndex = PotionFLST.Find(WhiteRussianALCH) If iIndex == - 1 Debug.Trace("WhiteRussianALCH is not a member of the PotionFLST.") Else Debug.Trace("WhiteRussianALCH is a member of the PotionFLST and its index is " + iIndex + ".") EndIf