SetEssential - ActorBase

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ActorBase Script

Sets or clears this actor's essential flag. If the actor is protected and you set the essential flag, the protected flag will be removed.

Syntax[edit | edit source]

Function SetEssential(bool abEssential = true) native

Parameters[edit | edit source]

  • abEssential: Whether to set or clear this actor's essential flag.
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Flag the Emperor as essential
EmperorBaseActorProperty.SetEssential()


; Flag RedShirt as non-essential
RedShirtBaseActorProperty.SetEssential(false)

See Also[edit | edit source]