Difference between revisions of "IsRefEssential"
Jump to navigation
Jump to search
imported>WereWolf |
imported>DragoonWraith (not a record variable function) |
||
Line 16: | Line 16: | ||
[[SetRefEssential]] | [[SetRefEssential]] | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Functions (OBSE)]] | [[Category: Functions (OBSE)]] | ||
[[Category: Actor Value Functions]] | [[Category: Actor Value Functions]] | ||
[[Category: Actor Value Functions (OBSE)]] | [[Category: Actor Value Functions (OBSE)]] |
Revision as of 20:53, 21 March 2008
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.isEssential ) myNPCRef.setRefEssential 0 ; remove the essential flag from the reference endif