IsProtected - ActorBase

From Creation Kit
Jump to: navigation, search

Member of: ActorBase Script

Obtains whether this actor base is flagged as protected or not.

Syntax

bool Function IsProtected() native

Parameters

None.

Return Value

Whether this actor base is flagged as protected.

Examples

; Is the actor protected?
ActorBase PersonBase = ImportantPersonProperty.GetBaseObject() as ActorBase
if (PersonBase.IsProtected())
  Debug.Trace("Important person is protected")
endIf

See Also