Difference between revisions of "SetEssential"
Jump to navigation
Jump to search
imported>Wrye |
imported>Haama (CS 1.0 stuff) |
||
Line 11: | Line 11: | ||
===Using on Player=== | ===Using on Player=== | ||
Using setEssential on the player will result in camera problems (camera becomes centered on players feet). See [http://www.uesp.net/wiki/Tes4Mod:Resurrecting_the_Player UESP: Resurrecting the Player] for analysis and alternate approaches. | Using setEssential on the player will result in camera problems (camera becomes centered on players feet). See [http://www.uesp.net/wiki/Tes4Mod:Resurrecting_the_Player UESP: Resurrecting the Player] for analysis and alternate approaches. | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Functions (CS 1.0)]] | |||
[[Category: Statistics Functions]] | [[Category: Statistics Functions]] | ||
[[Category: Statistics Functions (CS 1.0)]] | |||
[[Category:Actor Functions]] | [[Category:Actor Functions]] | ||
[[Category:Actor Functions (CS 1.0)]] |
Revision as of 16:02, 8 August 2007
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.
Note that it will act as a return statement if ActorBase is a reference variable.
Using on Player
Using setEssential on the player will result in camera problems (camera becomes centered on players feet). See UESP: Resurrecting the Player for analysis and alternate approaches.