NiNodeGetChildren

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(array:childIDs) NiNodeGetChildren short:nifID short:blockID
(array:childIDs) NiNodeGetCh short:nifID short:blockID

Returns an array of IDs corresponding to each of the NiAVObject-derived blocks listed as the NiNode-derived block's children. The IDs in the array can be used as blockIDs for other functions (or even this one, if the child is a NiNode).

Because blockID defaults to 0, the NIF's root, and the root is a NiNode, this function can get the children of the root by not using an explicit blockID.

See Also[edit | edit source]