Difference between revisions of "NifGetNthExtraDataType"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (string:Type) NifGetNthExtraDataType short:ExtraDataID short:NifID
  (string:ExtraDataType) NifGetNthExtraDataType short:ExtraDataID short:NifID


Returns the Type of the specified ExtraData node of the specified nif.
Returns the Type of the specified ExtraData node of the specified nif.

Revision as of 12:34, 25 April 2010

This is a command from NifSE.

Syntax

(string:ExtraDataType) NifGetNthExtraDataType short:ExtraDataID short:NifID

Returns the Type of the specified ExtraData node of the specified nif.

ExtraData Types

These are all of the NIF block types that derive from NiExtraData. NiExtraData blocks are included in a NIF via the ExtraData list of NiObjectNET blocks.

  • NiObject (ancestor)
    • NiExtraData *
      • BSBound
      • BSFurnitureMarker
      • NiBinaryExtraData A
      • NiBinaryVoxelData A
      • NiBooleanExtraData N
      • NiColorExtraData A
      • NiFloatExtraData N
      • NiFloatsExtraData A
      • NiIntegerExtraData N
        • BSXFlags N
      • NiIntegersExtraData A
      • NiStringExtraData S
      • NiStringsExtraData A
      • NiTextKeyExtraData
      • NiVectorExtraData A
      • NiVertWeightsExtraData A

* NiExtraData is effectively an abstract type - it does not do anything on its own. Use any of the subsequent sub-children to indicate the type of Extra Data that is desired.

BSFurnitureMarkers have their own, separate functions, BSFurnitureMarkerGetPositionRefs and BSFurnitureMarkerSetPositionRefs.

A These data types are arrays, and thus their values can be gotten with NiExtraDataGetArray and set with NiExtraDataSetArray.

N These data types are numbers, and thus their values can be gotten with NiExtraDataGetNumber and set with NiExtraDataSetNumber.

S These data types are strings, and thus their values can be gotten with NiExtraDataGetString and set with NiExtraDataSetString.

All other types are not supported by NifSE v1.0. They may be added to or deleted from NiObjectNET blocks, but not read or edited in any way.

See Also