Mod:Creation Kit/Unlock - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Unlocks this object.

Syntax
Function Unlock(bool abAsOwner = false)

Parameters

 * abAsOwner: If true, and on a door, it will behave as if the owner unlocked the door, and flag the adjoining cell as public or private as appropriate.
 * Default: False

Return Value
None.

Examples
SecurityDoor.Unlock; PrivateDoor.Unlock(true)
 * Unlock the door
 * Unlock the door, flagging the cell on the other side as public