GetChildBlocks

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 blocks that are descended from the specified parent node, in the calling reference's loaded 3D model.

  • The 1st argument, parentNode, is optional. If omitted, or an empty string, the object's root node will be used.
  • 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]
(blockNames:array_var) reference.GetChildBlocks parentNode:string pcModel:1/2

Example

let aChildBlocks := player.GetChildBlocks "Bip01 Spine" 

See Also