Background for Fallout 4
Member of the RefCollectionAlias script
voidfunctionSetEssential(boolbSetEssential=true)

Description

Wiki Description

Calls Actor.SetEssential(...) on all the actors in the collection.

Documentation Comment

kmk
convenience function - sets/clears Essential on everyone


Caveats

CK Wiki - Notes

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


Parameters

boolbSetEssential=true

CK Wiki Description

Whether to set them as essential or not

  • Default:True

Examples

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

Auto-Generated Example

bool myBool__bSetEssential

myRefCollectionAlias__toCallFunctionOn.SetEssential(myBool__bSetEssential)

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.