Difference between revisions of "NiNodeGetChildByName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Low Post
m (Removed Nth in the Syntax explanation)
imported>DragoonWraith
Line 4: Line 4:
  (short:ChildIndex) NifGetChildIndexByName string:Name short:NifID
  (short:ChildIndex) NifGetChildIndexByName string:Name short:NifID


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 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.


== See Also ==
== See Also ==

Revision as of 15:20, 25 April 2010

This is a command from NifSE.

Syntax

(short:ChildIndex) NifGetChildIndexByName string:Name short:NifID

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.

See Also