SetEssential - RefCollectionAlias
Member of: RefCollectionAlias Script
Calls SetEssential on all the actors in the collection.
SyntaxEdit
Function SetEssential(bool bSetEssential = true)ParametersEdit
- bSetEssential: Whether to set them as essential or not
- Default: True
Return ValueEdit
None.
ExamplesEdit
; Flag everyone as essential
ImportantPeople.SetEssential()
; Set no one as essential
Expendables.SetEssential(false)NotesEdit
Because this uses SetEssential at the actor level, changing the essential status later via base object or alias will no longer have any effect.