Difference between revisions of "NiObjectNETSetName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
(about NiEDSetName)
 
Line 6: Line 6:


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

== Note ==
* <tt>NiExtraData</tt> blocks have names, but are not derived from <tt>NiObjectNET</tt>. Therefore, you must use [[NiExtraDataSetName]] for those blocks.


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

Latest revision as of 14:15, 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.

Note[edit | edit source]

  • NiExtraData blocks have names, but are not derived from NiObjectNET. Therefore, you must use NiExtraDataSetName for those blocks.

See Also[edit | edit source]