SetProtected - ActorBase

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ActorBase 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.

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.
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Flag the Emperor as protected
EmperorBaseActorProperty.SetProtected()


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

See Also[edit | edit source]