The GetLocked script function gets the access state of terminals and locks.
if TerminalRef01.GetLocked == 1
Returns whether terminal is locked but can still be hacked.
- Return values:
- 0 = unlocked (player has note, successfully hacked, difficulty=unlocked, or terminal unlocked through script)
- 1 = locked but can be hacked
- 2 = locked out (player failed at hacking or lock level is impossible)