SetProtected - RefCollectionAlias
Jump to navigation
Jump to search
Member of: RefCollectionAlias Script
Calls SetProtected on all the actors in the collection.
Syntax[edit | edit source]
Function SetProtected(bool bSetProtected = true)
Parameters[edit | edit source]
- bSetProtected: Whether to set them as protected or not
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Flag everyone as protected
ImportantPeople.SetProtected()
; Set no one as protected
Expendables.SetProtected(false)
Notes[edit | edit source]
Because this uses SetProtected at the actor level, changing the protected status later via base object or alias will no longer have any effect.