Difference between revisions of "ListAddForm"
Jump to navigation
Jump to search
imported>Omzy m |
imported>Omzy m |
||
Line 31: | Line 31: | ||
*[[ListReplaceForm]] | *[[ListReplaceForm]] | ||
*[[ListReplaceNthForm]] | *[[ListReplaceNthForm]] | ||
*[[ListGetNthForm]] | *[[ListGetNthForm]] | ||
*[[ListGetFormIndex]] | *[[ListGetFormIndex]] |
Revision as of 08:56, 3 August 2009
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Adds a form to a FormList with the option to specify an index. If no index is specified, the form is added at the end of the list (with the highest index). This differs from AddFormToFormList. The function returns the index at which the form was successfully added.
Syntax
(addedAtIndex:int) ListAddForm FormListID:ref FormID:ref index:int
Example
ListAddForm myFormList myForm ListAddForm yourFormList yourForm 4
Notes
- This function differs from AddFormToFormList in the way that forms are added to a FormList when no index is given.
- This function has been tested to accept any FormIDs, including base objects and dynamically created references.