Difference between revisions of "AddFormToFormList"
Jump to navigation
Jump to search
redone
imported>DewiMorgan (→Description: link to formlist) |
imported>Omzy (redone) |
||
Line 1: | Line 1: | ||
== | {{Function | ||
|CSWikiPage = AddFormToFormList | |||
|origin = GECK1 | |||
|summary = Adds a form to a [[FormList]]. Unlike [[ListAddForm]], this function adds the new form at the 0th index, adding 1 to the indices of the other list entries. | |||
This function was originally intended to modify lists from the base game in downloadable content. | |||
|name = AddFormToFormList | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = FormListID | |||
|Type = ref | |||
}}{{FunctionArgument | |||
|Name = FormID | |||
|Type = ref | |||
}} | |||
|example = AddFormToFormList AlcoholicDrinks SamAdamsBeer | |||
AddFormToFormList DialogueAnimationBulkyArmors NewBulkyArmor | AddFormToFormList DialogueAnimationBulkyArmors NewBulkyArmor | ||
}} | |||
==Notes== | |||
*This function has been tested to accept any FormIDs, including base objects and dynamically created references. | |||
== | *If you are performing lots of list modifications through scripts, consider using the FOSE function [[ListAddForm]] instead. | ||
*This function | *In the first example above, the new beer is now considered alcoholic and will produce the same effects of other alcoholic drinks when the game checks this list (the actual list name in the editor is misspelled as AlchoholicDrinks). | ||
*In the second example above, animations are now aware of a new armor that is considered "bulky" and will be used to condition certain animations. | |||
*[[ | |||
* | |||
* | |||
==See Also== | |||
*[[ListAddForm]] | |||
*[[ListAddReference]] | |||
*[[ListRemoveForm]] | |||
*[[ListRemoveNthForm]] | |||
*[[ListReplaceForm]] | |||
*[[ListReplaceNthForm]] | |||
*[[ListGetForm]] | |||
*[[ListGetNthForm]] | |||
*[[ListGetFormIndex]] | |||
*[[ListGetcount]] | |||
*[[IsInList]] | |||
*[[IsWeaponInList]] | |||
[[Category: | [[Category:List Functions]] | ||