AddPackageAt

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Adds a package to calling actor's AI package list at a specified index. Using -1 as an index appends the package to the end of the list. Existing packages are not replaced when adding at the same index, indices are shifted up instead.

Syntax

[help]
(int:index) actor.AddPackageAt package:baseform index:int actor:reference

Example

SunnyREF.AddPackageAt MyPackage 0 

See Also