SetEssential - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Calls SetEssential on all the actors in the collection.

Syntax[edit | edit source]

Function SetEssential(bool bSetEssential = true)

Parameters[edit | edit source]

  • bSetEssential: Whether to set them as essential or not
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Flag everyone as essential
ImportantPeople.SetEssential()


; Set no one as essential
Expendables.SetEssential(false)

Notes[edit | edit source]

Because this uses SetEssential at the actor level, changing the essential status later via base object or alias will no longer have any effect.

See Also[edit | edit source]