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