This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

IsRefEssential

From the Oblivion ConstructionSet Wiki
Revision as of 16:38, 14 September 2007 by imported>WereWolf
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(isEssential:bool) reference.IsRefEssential
[Ref.]IsRefEssential

Must be called on a reference. Returns true if the reference is an essential actor (meaning they can't be killed, only knocked unconscious).

Example:

if ( myNPCRef.isEssential )
  myNPCRef.setRefEssential 0 ; remove the essential flag from the reference
endif

See Also

SetRefEssential