Difference between revisions of "NiNodeGetChildByName"

Jump to navigation Jump to search
179 bytes added ,  18:36, 28 August 2010
no edit summary
imported>DragoonWraith
m (NifGetChildIndexByName moved to NiNodeGetChildByName: new name for function as of alpha 5.)
imported>DragoonWraith
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (short:ChildIndex) NifGetChildIndexByName 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". Returns -1 if there is no Child by that name.
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]]


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

Navigation menu