Resource:Creation Kit > Unlock - ObjectReference
Member of: ObjectReference Script
Unlocks this object.
Syntax[edit]
Function Unlock(bool abAsOwner = false)
Parameters[edit]
- 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[edit]
None.
Examples[edit]
; Unlock the door SecurityDoor.Unlock();
; Unlock the door, flagging the cell on the other side as public PrivateDoor.Unlock(true)
Notes[edit]
- Non-native function. Basically just calls Lock() and passes in abLock = false.
