Background for Fallout 4
Member of the Actor script
voidfunctionSetProtected(boolabProtected)Native

Description

Wiki Description

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.

Documentation Comment

overrides the Protected status of the actor


Caveats

CK Wiki - Notes

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


Parameters

boolabProtected

CK Wiki Description

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


Examples

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

Auto-Generated Example

bool myBool__abProtected

myActor__toCallFunctionOn.SetProtected(myBool__abProtected)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.