IsRefEssential

Revision as of 20:52, 8 August 2010 by imported>DragoonWraith (Reverted edits by CSbot (Talk); changed back to last version by DragoonWraith)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.isRefEssential )
  myNPCRef.setRefEssential 0 ; remove the essential flag from the reference
endif

See AlsoEdit

SetRefEssential