Background for Fallout 4
Member of the ObjectReference script
voidfunctionUnlock(boolabAsOwner=false)

Description

Wiki Description

Unlocks this object.

Documentation Comment

convenient way to call Lock(False) on a door


Caveats

CK Wiki - Notes

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

Parameters

boolabAsOwner=false

CK Wiki Description

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

Examples

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

Auto-Generated Example

bool myBool__abAsOwner

myObjectReference__toCallFunctionOn.Unlock(myBool__abAsOwner)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.