Difference between revisions of "SetProtected - ActorBase"
Jump to navigation
Jump to search
imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' ActorBase Script Sets or clears this actor's protected flag. If you set the flag, and the actor is essential, th…') |
imported>Rasikko (Can't change the flag if the flag is set on an alias.) |
||
Line 27: | Line 27: | ||
RedShirtBaseActorProperty.SetProtected(false) | RedShirtBaseActorProperty.SetProtected(false) | ||
</source> | </source> | ||
== Notes == | |||
* This function is overridden by the flag on a quest alias. | |||
== See Also == | == See Also == | ||
*[[ActorBase Script]] | *[[ActorBase Script]] | ||
*[[IsProtected - ActorBase]] | *[[IsProtected - ActorBase]] |
Revision as of 10:27, 15 April 2020
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
Function SetProtected(bool abProtected = true) native
Parameters
- abProtected: Whether to set or clear this actor's protected flag.
- Default: True
Return Value
None.
Examples
; Flag the Emperor as protected
EmperorBaseActorProperty.SetProtected()
; Flag RedShirt as non-protected
RedShirtBaseActorProperty.SetProtected(false)
Notes
- This function is overridden by the flag on a quest alias.