GetNifBlockParentNodes

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns an array_var containing the names (string_vars) of all the parent nodes of the specified NIF block in the calling reference's loaded 3D model.

The first element of the array is the name of the direct parent of the NIF block, the second is its grandparent, and so on, all the way to the top root node.

  • The 2nd argument, pcModel, is optional, and may be used when calling the function on the player. The player character has two, completely separate 3D models for 1st and 3rd person. This argument enables to explicitly target one of the models.
1	3rd Person Model
2	1st Person Model

Syntax

[help]
(parentNames:array_var) reference.GetNifBlockParentNodes blockName:string pcModel:1/2

Example

let aParentNames := player.GetNifBlockParentNodes "ProjectileNode" 

See Also