Lock
From GECK
Link to TES4 Construction Set Wiki: Lock.
A function included in the GECK for Fallout 3.
Contents
Description
The Lock script function changes the lock level of a terminal or lock on a container or door. The second parameter can be used to specify the the new owner of the locked object.
Syntax
[ObjectRefID].Lock LockLevel:int
Example
TerminalRef01.Lock 75
Changes the lock level of the terminal to hard.
Notes
- Lock 0 (default) will lock it but NOT change the lock level
- NOTE: It appears that it is NOT possible to set a lock level to "Very Easy", because the parameter of 0 means "don't change lock level" rather than change lock level to 0 (ie "very easy")
- Lock 1-255 will change the level of the lock AND lock it
- Values for a lock (door or container):
0 very easy 25 easy 50 average 75 hard 100 very hard 255 impossible
- Values for a terminal:
0 very easy 1 easy 2 average 3 hard 4 very hard 5 impossible
- Will override:
- Any lock level, including “unlocked”.
- A call to Unlock in script or in console
- Will not override:
- If player has note with password. (Will change lock level but player will still have terminal access)
- If player successfully hacked terminal. (Will change lock level but player will still have terminal access)
- If player failed to hack terminal. (Will change lock level but player will still be locked out.)
- The level you specify is a base level. If the terminal is leveled, the actual lock level may be adjusted.