NiExtraDataSetNumber
Jump to navigation
Jump to search
This is a command from NifSE.
Syntax
(bool:success) NiExtraDataSetNumber number:value short:nifID short:blockID (bool:success) NiEDSetNum number:value 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. The type of value varies according to the type of numerical NiExtraData is being set; see below.
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
- BSXFlags - short, containing a bit field: