Background for Fallout 4
Member of the ObjectReference script
voidfunctionLock(boolabLock=true, boolabAsOwner=false)Native

[DEV SERVER] Loading description...


Caveats


Parameters

boolabLock=true

CK Wiki Description

Whether to lock or unlock this lock.

  • Default:True

boolabAsOwner=false

CK Wiki Description

If true, and on a door, it will behave as if the owner unlocked or locked the door, and flag the adjoining cell as public or private as appropriate.

  • Default:False

Examples

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

Auto-Generated Example

bool myBool__abLock
bool myBool__abAsOwner

myObjectReference__toCallFunctionOn.Lock(myBool__abLock, 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.