Unlock - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Unlocks this object.

Syntax[edit | edit source]

Function Unlock(bool abAsOwner = false)

Parameters[edit | edit source]

  • 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 | edit source]

None.

Examples[edit | edit source]

; Unlock the door
SecurityDoor.Unlock();


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

Notes[edit | edit source]

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

See Also[edit | edit source]