GenericGetForm
From GECK
A function added by the New Vegas Script Extender.
Description
Returns the form within an embedded list of forms associated with an object at a given index.
Syntax
(form) GenericGetForm ListCode:int Target:object Index:int
Embedded List Codes
- 0 = Race Hair (see also: GetRaceHairs
- 1 = Race Eyes (GetRaceEyes)
- 5 = Actor Base (NPC or creature) Packages (GetBasePackages)
- 6 = Actor Base Spells (GetBaseSpellListSpells)
- 7 = Actor Base Levelled Spells (GetBaseSpellListLevSpells)
- 10 = NPC Head Part (GetHeadParts)
- 13 = Form List form (redundant given existing functions, such as ListAddForm)
Example
To return Easy Pete's first head part (index 0):
ref HeadPart let HeadPart := GenericGetForm 10, EasyPeteREF, 0 ; HeadPart is 'Old Beard'.