Difference between revisions of "SetEssential"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>Daego
m
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
  SetEssential ''ActorBase value''  
  SetEssential ''ActorBase bool''  
'''Example:'''
'''Example:'''
  SetEssential MyFavoriteNPC, 1  
  SetEssential MyFavoriteNPC 1
  SetEssential MyLeastFavoriteNPC, 0  
  SetEssential MyLeastFavoriteNPC 0


Sets the "essential" flag on an actor (1 or 0). When this flag is set to 1, the NPC/creature will not be killable -- when his health drops to 0 or below, an essential actor will be made temporary "unconscious". This is normally used to prevent the player from accidentally killing an NPC who is required to complete a quest.  
Sets the "essential" flag on an actor (1 or 0). When this flag is set to 1, the NPC/creature will not be killable -- when his health drops to 0 or below, an essential actor will be made temporary "unconscious". This is normally used to prevent the player from accidentally killing an NPC who is required to complete a quest.


==See Also==
==See Also==

Revision as of 21:34, 29 March 2006

Syntax:

SetEssential ActorBase bool 

Example:

SetEssential MyFavoriteNPC 1
SetEssential MyLeastFavoriteNPC 0

Sets the "essential" flag on an actor (1 or 0). When this flag is set to 1, the NPC/creature will not be killable -- when his health drops to 0 or below, an essential actor will be made temporary "unconscious". This is normally used to prevent the player from accidentally killing an NPC who is required to complete a quest.

See Also

Essential Actors