Unlock - ObjectReference

Member of: ObjectReference Script

Unlocks this object.

SyntaxEdit

Function Unlock(bool abAsOwner = false)

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

; Unlock the door
SecurityDoor.Unlock();


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

NotesEdit

  • Non-native function. Basically just calls Lock() and passes in abLock = false.

See AlsoEdit