GenericAddForm

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Adds a form to an embedded list of forms associated with an object at a given index; passing -2 will add to the end of the list.

Syntax

[help]
(none) GenericAddForm ListCode:int Target:object ToAdd:form Index:int 

Embedded List Codes

Example

To add a new head part to Easy Pete:

GenericAddForm 10, EasyPeteREF, EyePatch, -2

Note: Changes to an actor's 3D are not visible until it reloads, which can be forced using Update3D.

See Also