NiExtraDataSetArray

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NiExtraDataSetArray array_var:value short:nifID short:blockID
(bool:success) NiEDSetNum array_var:value short:nifID short:blockID

If the block indicated by blockID is of a NiExtraData-derived class with an array 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. The format of value varies according to the type of Array NiExtraData is being set; see below.

Returns 1 if successful, 0 otherwise.

Array NiExtraData Types

The following NiExtraData have array data.

  • NiBinaryExtraData - an array of shorts
  • NiColorExtraData - a StringMap with the following format:
    map["r"]:float - Red intensity
    map["g"]:float - Green intensity
    map["b"]:float - Blue intensity
    map["a"]:float - Alpha value
  • NiFloatsExtraData - an array of floats
  • NiIntegersExtraData - an array of integers
  • NiStringsExtraData - an array of strings
  • NiVectorExtraData - a vector of floats with length 3, corresponding to x, y, and z.

See Also[edit | edit source]