IsRefEssential

From the Oblivion ConstructionSet Wiki
Revision as of 19:17, 4 December 2006 by imported>Scruggs
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

[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