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