Difference between revisions of "NiNodeGetChildByName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from Category:NifSE. '''Syntax''' (short:ChildIndex) NifGetNthChildIndexByName string:Name short:NifID Returns the index of the first Child of the root to have t...)
 
Tag: Manual revert
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (short:ChildIndex) NifGetNthChildIndexByName string:Name short:NifID
  (short:childIndex) NiNodeGetChildByName string:name short:nifID ''short:blockID''
(short:childIndex) NiNodeGetChByName string:name short:nifID ''short:blockID''


Returns the index of the first Child of the root to have the specified name. Most useful for finding a weapon's scabbard by calling for "Scb".
Searches the <tt>NiNode</tt>-derived block indicated by <tt>blockID</tt> for a child (a <tt>NiAVObject</tt>-derived block) with the name specified. Returns -1 if no block by that name is found. If multiple blocks have the same name, this function will return only the first one.


== See Also ==
== See Also ==
* [[NifGetNthChildName]]
* [[NiNodeGetNumChildren]]
* [[NifSetNthChildName]]
* [[NiNodeGetChildren]]
* [[NiNodeDeleteChild]]


[[Category:NifSE|GetChildIndexByName]]
[[Category:NifSE|NodeGetChildByName]]
[[Category:NifSE (Children)|GetChildIndexByName]]
[[Category:NifSE (NiNode)|GetChildByName]]

Latest revision as of 12:24, 21 December 2023

This is a command from NifSE.

Syntax

(short:childIndex) NiNodeGetChildByName string:name short:nifID short:blockID
(short:childIndex) NiNodeGetChByName string:name short:nifID short:blockID

Searches the NiNode-derived block indicated by blockID for a child (a NiAVObject-derived block) with the name specified. Returns -1 if no block by that name is found. If multiple blocks have the same name, this function will return only the first one.

See Also[edit | edit source]