GetCellLighting

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(lighting:StringMap) GetCellLighting cell:ref

Returns a StringMap describing the lighting properties for the interior cell. The StringMap contains the following key-value pairs corresponding to the fields in the editor's Cell Lighting tab, where 'RGB Array' is a 3-element Array with values from 0-255 in the order {red, green, blue}:

  • "ambient" (RGB Array)
  • "directional" (RGB Array)
  • "fog" (RGB Array)
  • "rotxy" (float)
  • "rotz" (float)
  • "fognear" (float)
  • "fogfar" (float)
  • "clip" (float)
  • "fade" (float)


See Also