SetProtected - RefCollectionAlias

Revision as of 11:44, 3 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' RefCollectionAlias Script Calls SetProtected on all the actors in the collection. == S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

See AlsoEdit