Difference between revisions of "SetGhost - Actor"
Jump to navigation
Jump to search
imported>Illyism |
imported>Illyism (→Notes) |
||
Line 29: | Line 29: | ||
== Notes == | == Notes == | ||
Ghosted actors do not register OnHit events | Ghosted actors do not register OnHit events and are unaffected by Weapon, Spell, Explosion, Ingredient, Potion, or Enchantment. | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] | ||
*[[IsGhost - Actor]] | *[[IsGhost - Actor]] |
Latest revision as of 05:32, 4 February 2021
Member of: Actor Script
Flags this actor as a ghost or not.
Syntax[edit | edit source]
Function SetGhost(bool abIsGhost = true) native
Parameters[edit | edit source]
- abIsGhost: Whether to set or clear the actor's ghost status.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Set Christmas Future to a ghost
ChristmasFuture.SetGhost()
; Clear Nate's ghost status
Nate.SetGhost(false)
Notes[edit | edit source]
Ghosted actors do not register OnHit events and are unaffected by Weapon, Spell, Explosion, Ingredient, Potion, or Enchantment.