Background for Starfield
Member of the Actor script
voidfunctionSetGhost(boolabIsGhost=true)Native

Description

Wiki Description

Flags this actor as a ghost or not.

Documentation Comment

Flags/unflags this actor as a ghost


Caveats

CK Wiki - Notes

Ghosted actors do not register OnHit events and are unaffected by Weapon, Spell, Explosion, Ingredient, Potion, or Enchantment.

If the player consumes an ALCH Potion while ghosted the inventory item will be used but any associated MGEF MagicEffect or script will not trigger.

While the player is ghosted low confidence hostile NPCs may flee when they "calculate" they can do no damage.


Parameters

boolabIsGhost=true

CK Wiki Description

Whether to set or clear the actor's ghost status.

  • Default:True

Examples

; Set Christmas Future to a ghost
ChristmasFuture.SetGhost()
; Clear Nate's ghost status
Nate.SetGhost(false)

Auto-Generated Example

bool myBool__abIsGhost

myActor__toCallFunctionOn.SetGhost(myBool__abIsGhost)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.