Difference between revisions of "SetRefEssential"
Jump to navigation
Jump to search
m
Reverted edits by CSbot (Talk); changed back to last version by DragoonWraith
imported>CSbot (Automated import of articles) |
imported>DragoonWraith m (Reverted edits by CSbot (Talk); changed back to last version by DragoonWraith) |
||
|
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
| summary = Sets the calling ref to be essential or not.▼
'''Syntax:'''
[[Category:Functions]]▼
reference.SetRefEssential isEssential:bool
[[Category:Functions (OBSE)]]▼
[[Category:Functions (OBSE v0009)]]▼
[''Ref.'']setRefEssential ''booleanFlag''
[[Category:Actor Functions]]▼
==Notes==
* Essential actors cannot be killed, only knocked unconscious.
* Must be called on a reference to an actor.
* Set to 1 to flag the reference as essential or 0 to clear the flag.
'''Example:'''
<pre>
if ( myNPCRef.isRefEssential == 0 )
myNPCRef.setRefEssential 1 ; make the reference essential
endif</pre>
==See Also==
[[IsRefEssential]]
▲[[Category: Functions]]
▲[[Category: Functions (OBSE)]]
▲[[Category: Actor Value Functions]]
| |||