NiStencilPropertySetStencilState

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:success) NiStencilPropertySetStencilState bool:stencilState short:nifID short:blockID
(bool:success) NiStenPropSetState bool:stencilState short:nifID short:blockID

Sets whether or not the NiStencilProperty specified by blockID has stenciling turned on. This determines whether or not the stencil buffer is being used.

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]