Difference between revisions of "NiObjectNETSetName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
m (NifSetNthChildName moved to NiObjectNETSetName: new name.)
imported>DragoonWraith
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
(bool:success) NifSetNthChildName string:Name short:ChildID short:NifID
(bool:success) NiObjectNETSetName string:name short:nifID ''short:blockID''
(bool:success) NiObjNETSetName string:name short:nifID ''short:blockID''


Renames the specified Child to the root. Returns a 0 if the process fails for any reason, and prints a message to the Console and NifSE.log.
Renames the specified <tt>NiObjectNET</tt>-derived block. The NIF's root is a <tt>NiNode</tt>, which is derived from <tt>NiObjectNET</tt>, so using the default value of <tt>blockID</tt>, 0, will change the root's name. Returns a 1 on success and a 0 otherwise.


== See Also ==
== See Also ==
* [[NifGetNthChildName]]
* [[NiObjectNETGetName]]
* [[NifGetChildIndexByName]]


* [[NiExtraDataGetName]]
⚫
[[Category:NifSE|SetNthChildName]]
* [[NiExtraDataSetName]]
⚫
[[Category:NifSE (Children)|SetNthChildName]]

⚫
[[Category:NifSE|ObjectNETSetName]]
⚫
[[Category:NifSE (NiObjectNET)|SetName]]

Revision as of 14:12, 29 August 2010

This is a command from NifSE.

Syntax

(bool:success) NiObjectNETSetName string:name short:nifID short:blockID
(bool:success) NiObjNETSetName string:name short:nifID short:blockID

Renames the specified NiObjectNET-derived block. The NIF's root is a NiNode, which is derived from NiObjectNET, so using the default value of blockID, 0, will change the root's name. Returns a 1 on success and a 0 otherwise.

See Also