BSFurnitureMarkerGetPositionRefs

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(Array:posRefs) BSFurnitureMarkerGetPositionRefs short:nifID short:blockID
(Array:posRefs) BSFurnMrkGetPosRefs short:nifID short:blockID

Returns an array of "position refs", which are StringMaps containing the various values of the position refs.

Each "position ref" has four parts:

["orient"] — Orientation, a short
["offset"] — Offset, itself an Array:
   ["offset"][0] — x coordinate, a float
   ["offset"][1] — y coordinate, a float
   ["offset"][2] — z coordinate, a float
["posRef1"] — Position Reference 1, a short
["posRef2"] — Position Reference 2, a short

The two position references always seem to have the same value.

The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from BSFurnitureMarker, so this function will always require an explicit blockID.

See Also[edit | edit source]