NiStencilPropertySetStencilRef

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NiStencilPropertySetStencilRef short:stencilRef short:nifID short:blockID
(bool:success) NiStenPropSetRef short:stencilRef short:nifID short:blockID

Sets the reference value of the NiStencilProperty specified by blockID. This is the value that the stencil function compares against to determine whether a pixel is drawn.

Returns 1 if successful, 0 otherwise.

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

See Also[edit | edit source]