NiExtraDataGetNumber

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(number:value) NiExtraDataGetNumber short:nifID short:blockID
(number:value) NiEDGetNum short:nifID short:blockID

If the block indicated by blockID is of a NiExtraData-derived class with a numerical data type, returns the block's value. Because blockID defaults to 0, which is usually the NIF's root, a NiNode, blockID must almost always be specified when using this function.

Returns 0 if the function fails for whatever reason. Be aware that 0 is also an acceptable return value for many of these blocks, however.

Numerical NiExtraData Types

The following NiExtraData-derived blocks have numerical data of the type indicated.

  • NiBooleanExtraData - bool
  • NiFloatExtraData - float
  • NiNiIntegerExtraData - short
    • BSXFlags - short, containing a bit field:
      Bit 0 = enable animation
      Bit 1 = enable collision
      Bit 2 = is skeleton nif?
      Bit 3 = unknown; set to 1 on Signs
      Bit 4 = FlameNodes present
      Bit 5 = EditorMarkers present

See Also[edit | edit source]