Difference between revisions of "ListAddForm"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions \(GECK 1.0\)\]\] +Category:\1Functions (FOSE)))
imported>Kalizar
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = 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.
  |summary = Adds the form to the list at the given index (or at the end if not provided)
  |name = ListAddForm
  |name = ListAddForm
|returnVal = addedAtIndex
  |returnType = ref
  |returnType = int
  |arguments =  
  |arguments =  
   {{FunctionArgument
   {{FunctionArgument
   |Name = FormListID
   |Name = form list
   |Type = ref
   |Type = ref
   }}{{FunctionArgument
   }}{{FunctionArgument
   |Name = FormID
   |Name = form
   |Type = ref
   |Type = ref
   }}{{FunctionArgument
   }}{{FunctionArgument
   |Name = index
   |Name = index
   |Type = int
   |Type = int
   |Optional = y
   |Optional = optional
   }}
   }}
|example = ListAddForm myFormList myForm
ListAddForm yourFormList yourForm 4
}}
}}
 
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
==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.
 
==See Also==
*[[ListAddReference]]
*[[ListRemoveForm]]
*[[ListRemoveNthForm]]
*[[ListReplaceForm]]
*[[ListReplaceNthForm]]
*[[ListGetNthForm]]
*[[ListGetFormIndex]]
*[[ListGetCount]]
*[[AddFormToFormList]]
*[[IsInList]]
*[[IsWeaponInList]]
 
[[Category:List Functions]]
[[Category:List Functions (FOSE)]]
[[Category:Functions]]
[[Category:Functions (FOSE)]]

Latest revision as of 17:34, 3 September 2010

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Adds the form to the list at the given index (or at the end if not provided)

Syntax

[help]
(ref) ListAddForm form list:ref form:ref index:int