Difference between revisions of "SetGhost"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
(typo)
imported>Shademe
(Updated with findings)
 
(5 intermediate revisions by 5 users not shown)
Line 4: Line 4:
Sets the actor to/from the "ghost" state. When in a ghost state:
Sets the actor to/from the "ghost" state. When in a ghost state:
* The actor will not enter combat
* The actor will not enter combat
* The actor cannot be harmed by a weapon or spell in any way
* The actor cannot be harmed by a weapon or spell in any way.
* The actor will not be affected by any new magic effects.
* The actor ''will'' be hurt by water damage and some traps
* The actor ''will'' be hurt by water damage and some traps
* The actor ''can'' inflict damage. So using ''player.SetGhost 1'' will ''not'' prevent the player from killing their enemies.
* The actor ''can'' inflict damage. So using ''player.SetGhost 1'' will ''not'' prevent the player from killing their enemies.
 
* The actor is still able to talk and can be activated to talk.
* The actor can not be pick pocketed.


==See Also==
==See Also==
[[GetIsGhost]]
*[[GetIsGhost]]
 




[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions (CS 1.0)]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
[[Category:Actor Functions (CS 1.0)]]
<!-- Begin Search Terms
Set
Ghost
End Search Terms -->

Latest revision as of 16:16, 18 November 2009

Syntax:

 SetGhost iGhostFlag ( 0 or 1 )

Sets the actor to/from the "ghost" state. When in a ghost state:

  • The actor will not enter combat
  • The actor cannot be harmed by a weapon or spell in any way.
  • The actor will not be affected by any new magic effects.
  • The actor will be hurt by water damage and some traps
  • The actor can inflict damage. So using player.SetGhost 1 will not prevent the player from killing their enemies.
  • The actor is still able to talk and can be activated to talk.
  • The actor can not be pick pocketed.

See Also[edit | edit source]