GenericDeleteForm

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Deletes a form within an embedded list of forms associated with an object at a given index. Returns the removed form.

Syntax

[help]
(RemovedForm:ref) GenericDeleteForm ListCode:int Target:object Index:int 

Embedded List Codes

Example

To remove Easy Pete's beard:

ref OldForm

let OldForm := GenericDeleteForm 10, EasyPeteRef, 0

; OldForm is 'Old Beard'.

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

See Also