Mod:Creation Kit/SetProtected - Actor

Member of: Mod:Creation Kit/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
Function SetProtected(bool abProtected = true) native

Parameters

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

Return Value
None.

Examples
EmperorActorProperty.SetProtected RedShirtActorProperty.SetProtected(false)
 * Flag the Emperor as protected
 * Flag RedShirt as non-protected