SetProtected - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Sets or clears this actor's protected flag. If you set the flag, and the actor is essential, the essential flag will be cleared. This works on an individual actor, not the actor base.

Syntax[edit | edit source]

Function SetProtected(bool abProtected = true) native

Parameters[edit | edit source]

  • abProtected: Whether to set or clear this actor's protected flag.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Flag the Emperor as protected
EmperorActorProperty.SetProtected()


; Flag RedShirt as non-protected
RedShirtActorProperty.SetProtected(false)

Notes[edit | edit source]

Once this function is called it overrides the actor base value. Changing the state on the actor base will no longer have any effect.

See Also[edit | edit source]