NiExtraDataSetNumber

From the Oblivion ConstructionSet Wiki
Revision as of 11:00, 30 August 2010 by imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (number:value) NiExtraDataSetNumber short:nifID ''short:blockID'' (number:value) NiEDSetNum short:nifID ''short:blockID'' ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(number:value) NiExtraDataSetNumber short:nifID short:blockID
(number:value) NiEDSetNum short:nifID short:blockID

If the block indicated by blockID is of a NiExtraData-derived class with a numerical data type, sets 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 1 if successful, 0 otherwise.

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