Difference between revisions of "SetRefEssential"

Jump to navigation Jump to search
188 bytes added ,  15:40, 14 September 2007
no edit summary
imported>Raziel23x
(Update)
imported>WereWolf
 
'''Syntax:'''
reference.SetRefEssential isEssential:bool
 
[''Ref.'']setRefEssential ''booleanFlag''
 
Sets the calling ref to be essential or not.
Must be called on a reference to an actor. Set to 1 to flag the reference as essential or 0 to clear the flag. Essential actors cannot be killed, only knocked unconscious.
 
==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.isEssential == 0 )
[[IsRefEssential]]
 
[[Category: OBSE Functions]]
[[Category: Functions (OBSE Actor Functions)]]
[[Category: OBSERecord ReferenceVariable Functions]]
[[Category: Actor_Value_Functions_Record Variable Functions (OBSE)]]
[[Category: Actor Value Functions]]
[[Category: Actor Value Functions (OBSE)]]
Anonymous user

Navigation menu