Unlock

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

ObjectRef.Unlock unlockAsOwner (optional)

Example:

Unlock 
Unlock 1 
MySpecialDoorRef.Unlock


Unlocks the door or container. If you use the optional UnlockAsOwner flag, the door will be treated as if the owner unlocked it, for purposes of the AI determining whether entering the cell behind the door is treated as trespassing or not. With UnlockAsOwner = 0, whether the cell is treated as public or private is unaffected.


See Also[edit | edit source]