Difference between revisions of "IsRefEssential"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
imported>Scruggs
Line 11: Line 11:
endif</pre>
endif</pre>


==See Also==
[[SetRefEssential]]
[[Category: OBSE Functions]]
[[Category: OBSE Functions]]
[[Category: OBSE Reference Functions]]
[[Category: OBSE Reference Functions]]
[[Category: OBSE_Actor_Functions]]
[[Category: OBSE_Actor_Functions]]

Revision as of 19:22, 4 December 2006

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

See Also

SetRefEssential