Difference between revisions of "IsRefEssential"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>DragoonWraith
m (Reverted edits by CSbot (Talk); changed back to last version by DragoonWraith)
 
(8 intermediate revisions by 4 users not shown)
Line 9: Line 9:


'''Example:'''
'''Example:'''
<pre>if ( myNPCRef.isEssential )
<pre>if ( myNPCRef.isRefEssential )
   myNPCRef.setRefEssential 0 ; remove the essential flag from the reference
   myNPCRef.setRefEssential 0 ; remove the essential flag from the reference
endif</pre>
endif</pre>
Line 15: Line 15:
==See Also==
==See Also==
[[SetRefEssential]]
[[SetRefEssential]]
<!--[[Category: OBSE Functions]]
 
[[Category: OBSE Reference Functions]]
[[Category: OBSE_Actor_Functions]]-->
[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category: Record Variable Functions]]
[[Category: Record Variable Functions (OBSE)]]
[[Category: Actor Value Functions]]
[[Category: Actor Value Functions]]
[[Category: Actor Value Functions (OBSE)]]
[[Category: Actor Value Functions (OBSE)]]

Latest revision as of 19:52, 8 August 2010

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 Also[edit | edit source]

SetRefEssential